Shell eza
aliases
- Remove arch specific shell aliases - Add eza aliases for ls and tree
This commit is contained in:
61
README.org
61
README.org
@@ -4241,46 +4241,6 @@ else
|
|||||||
bindkey -M vicmd "^[3;5~" delete-char
|
bindkey -M vicmd "^[3;5~" delete-char
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Common use aliases
|
|
||||||
alias aup="pamac upgrade --aur"
|
|
||||||
alias grubup="sudo update-grub"
|
|
||||||
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
|
|
||||||
alias tarnow='tar -acf '
|
|
||||||
alias untar='tar -zxvf '
|
|
||||||
alias wget='wget -c '
|
|
||||||
alias psmem='ps auxf | sort -nr -k 4'
|
|
||||||
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias ...='cd ../..'
|
|
||||||
alias ....='cd ../../..'
|
|
||||||
alias .....='cd ../../../..'
|
|
||||||
alias ......='cd ../../../../..'
|
|
||||||
alias dir='dir --color=auto'
|
|
||||||
alias vdir='vdir --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias fgrep='fgrep --color=auto'
|
|
||||||
alias egrep='egrep --color=auto'
|
|
||||||
alias hw='hwinfo --short' # Hardware Info
|
|
||||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
|
||||||
|
|
||||||
# Get fastest mirrors
|
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
|
||||||
|
|
||||||
# Help people new to Arch
|
|
||||||
alias apt='man pacman'
|
|
||||||
alias apt-get='man pacman'
|
|
||||||
alias please='sudo'
|
|
||||||
alias tb='nc termbin.com 9999'
|
|
||||||
|
|
||||||
# Replace yay with paru if installed
|
|
||||||
[ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru'
|
|
||||||
|
|
||||||
# Set your countries like --country France --country Germany -- or more.
|
|
||||||
alias upd='sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist && sudo pacman -Syu && sudo updatedb'
|
|
||||||
|
|
||||||
# Greeting
|
# Greeting
|
||||||
clear
|
clear
|
||||||
krabby random
|
krabby random
|
||||||
@@ -4314,19 +4274,6 @@ set -U fish_user_paths $fish_user_paths $HOME/.local/bin/
|
|||||||
**** Aliases
|
**** Aliases
|
||||||
|
|
||||||
#+BEGIN_SRC fish :tangle fish/.config/fish/config.fish
|
#+BEGIN_SRC fish :tangle fish/.config/fish/config.fish
|
||||||
# pacman and paru
|
|
||||||
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
|
||||||
alias parusua='paru -Sua --noconfirm' # update only AUR pkgs
|
|
||||||
alias parusyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs
|
|
||||||
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
|
|
||||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages
|
|
||||||
|
|
||||||
# get fastest mirrors
|
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
|
||||||
|
|
||||||
# Colorize grep output (good for log files)
|
# Colorize grep output (good for log files)
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
@@ -4337,11 +4284,9 @@ alias cp="cp -i"
|
|||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
|
|
||||||
# gpg encryption
|
# Replace ls and tree with eza
|
||||||
# verify signature for isos
|
alias ls="eza"
|
||||||
alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
|
alias tree="eza -T"
|
||||||
# receive the key of a developer
|
|
||||||
alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** TTY
|
**** TTY
|
||||||
|
@@ -8,19 +8,6 @@ end
|
|||||||
|
|
||||||
set -U fish_user_paths $fish_user_paths $HOME/.local/bin/
|
set -U fish_user_paths $fish_user_paths $HOME/.local/bin/
|
||||||
|
|
||||||
# pacman and paru
|
|
||||||
alias pacsyu='sudo pacman -Syyu' # update only standard pkgs
|
|
||||||
alias parusua='paru -Sua --noconfirm' # update only AUR pkgs
|
|
||||||
alias parusyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs
|
|
||||||
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
|
|
||||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages
|
|
||||||
|
|
||||||
# get fastest mirrors
|
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
|
||||||
|
|
||||||
# Colorize grep output (good for log files)
|
# Colorize grep output (good for log files)
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
@@ -31,11 +18,9 @@ alias cp="cp -i"
|
|||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
|
|
||||||
# gpg encryption
|
# Replace ls and tree with eza
|
||||||
# verify signature for isos
|
alias ls="eza"
|
||||||
alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
|
alias tree="eza -T"
|
||||||
# receive the key of a developer
|
|
||||||
alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
|
||||||
|
|
||||||
if [ "$TERM" = "linux" ]
|
if [ "$TERM" = "linux" ]
|
||||||
then
|
then
|
||||||
|
40
zsh/.zshrc
40
zsh/.zshrc
@@ -145,46 +145,6 @@ else
|
|||||||
bindkey -M vicmd "^[3;5~" delete-char
|
bindkey -M vicmd "^[3;5~" delete-char
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Common use aliases
|
|
||||||
alias aup="pamac upgrade --aur"
|
|
||||||
alias grubup="sudo update-grub"
|
|
||||||
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
|
|
||||||
alias tarnow='tar -acf '
|
|
||||||
alias untar='tar -zxvf '
|
|
||||||
alias wget='wget -c '
|
|
||||||
alias psmem='ps auxf | sort -nr -k 4'
|
|
||||||
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias ...='cd ../..'
|
|
||||||
alias ....='cd ../../..'
|
|
||||||
alias .....='cd ../../../..'
|
|
||||||
alias ......='cd ../../../../..'
|
|
||||||
alias dir='dir --color=auto'
|
|
||||||
alias vdir='vdir --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias fgrep='fgrep --color=auto'
|
|
||||||
alias egrep='egrep --color=auto'
|
|
||||||
alias hw='hwinfo --short' # Hardware Info
|
|
||||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
|
||||||
|
|
||||||
# Get fastest mirrors
|
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
|
||||||
|
|
||||||
# Help people new to Arch
|
|
||||||
alias apt='man pacman'
|
|
||||||
alias apt-get='man pacman'
|
|
||||||
alias please='sudo'
|
|
||||||
alias tb='nc termbin.com 9999'
|
|
||||||
|
|
||||||
# Replace yay with paru if installed
|
|
||||||
[ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru'
|
|
||||||
|
|
||||||
# Set your countries like --country France --country Germany -- or more.
|
|
||||||
alias upd='sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist && sudo pacman -Syu && sudo updatedb'
|
|
||||||
|
|
||||||
# Greeting
|
# Greeting
|
||||||
clear
|
clear
|
||||||
krabby random
|
krabby random
|
||||||
|
Reference in New Issue
Block a user