mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-03-22 04:35:47 +05:30
chore(alias): podman removed, up won't do OS upgrade
This commit is contained in:
@@ -87,7 +87,6 @@ cp_git_precommit() {
|
|||||||
command -v tldr >/dev/null && alias tldr="tldr --platform=linux"
|
command -v tldr >/dev/null && alias tldr="tldr --platform=linux"
|
||||||
command -v tldr >/dev/null && alias h="tldr"
|
command -v tldr >/dev/null && alias h="tldr"
|
||||||
command -v fzf >/dev/null && alias path="printenv | grep ^PATH= | sed 's/^PATH=//' | tr ':' '\n' | fzf"
|
command -v fzf >/dev/null && alias path="printenv | grep ^PATH= | sed 's/^PATH=//' | tr ':' '\n' | fzf"
|
||||||
command -v podman >/dev/null && alias docker=podman
|
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
alias cd_root='cd $(git rev-parse --show-toplevel 2>/dev/null || echo ".")'
|
alias cd_root='cd $(git rev-parse --show-toplevel 2>/dev/null || echo ".")'
|
||||||
@@ -101,7 +100,6 @@ git_push_all_changes() {
|
|||||||
git add . && git commit -am "${1}" && git push
|
git add . && git commit -am "${1}" && git push
|
||||||
}
|
}
|
||||||
|
|
||||||
# Directories and Directory listings
|
|
||||||
dir_size() {
|
dir_size() {
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
dir="$PWD"
|
dir="$PWD"
|
||||||
@@ -117,7 +115,7 @@ up() {
|
|||||||
|
|
||||||
# Detect package manager and set package manager commands
|
# Detect package manager and set package manager commands
|
||||||
if command -v dnf >/dev/null 2>&1; then
|
if command -v dnf >/dev/null 2>&1; then
|
||||||
update_command="sudo dnf upgrade --refresh && sudo dnf system-upgrade download --releasever=$(rpm -E %fedora) && sudo dnf autoremove"
|
update_command="sudo dnf update && sudo dnf upgrade --refresh && sudo dnf system-upgrade download --releasever=$(rpm -E %fedora) && sudo dnf autoremove"
|
||||||
elif command -v pkcon >/dev/null 2>&1; then
|
elif command -v pkcon >/dev/null 2>&1; then
|
||||||
update_command="sudo pkcon refresh && sudo pkcon update && sudo apt dist-upgrade && sudo apt autoremove"
|
update_command="sudo pkcon refresh && sudo pkcon update && sudo apt dist-upgrade && sudo apt autoremove"
|
||||||
elif command -v apt-get >/dev/null 2>&1; then
|
elif command -v apt-get >/dev/null 2>&1; then
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# TODO: Download & install patched-nerd-fonts
|
||||||
|
|
||||||
kitty_term() {
|
kitty_term() {
|
||||||
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
||||||
|
|
||||||
|
|||||||
4
setup.sh
4
setup.sh
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
# TODO: Make folder-links and NOT link to each file
|
||||||
|
|
||||||
INSTALL="n"
|
INSTALL="n"
|
||||||
DRY_RUN="n"
|
DRY_RUN="n"
|
||||||
@@ -94,7 +94,7 @@ main() {
|
|||||||
parse_input "$@"
|
parse_input "$@"
|
||||||
|
|
||||||
install_file_location="$(
|
install_file_location="$(
|
||||||
cd -- "$(dirname "$0")" > /dev/null 2>&1 || exit
|
cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit
|
||||||
pwd -P
|
pwd -P
|
||||||
)/scripts"
|
)/scripts"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user