alias ga='git add .; git commit --no-edit --amend; git push --force-with-lease' alias gae='git add .; git commit --amend; git push --force-with-lease' alias less='less -r' [ $(command -v bat) ] && alias cat='bat -pp --color=always --tabs=2 --theme=Monokai\ Extended\ Bright' if [ $(command -v exa) ]; then alias ls='exa --group-directories-first' alias ll='ls -l --git --octal-permissions --no-permissions' else case $(uname -s) in; Darwin) alias ls='ls -G';; Linux) alias ls='ls --color';; esac alias ll='ls -l' fi if [ $(command -v fd) ]; then [ -f ~/.local/config/fd ] && alias fd='fd -H -L --ignore-file ~/.local/config/fd' || alias fd='fd -H -L' fi if [ $(command -v nvim) ]; then export EDITOR=nvim export MANPAGER="nvim +Man!" alias vim=nvim alias vimdiff="nvim -d" elif [ $(command -v vim) ] ; then export EDITOR=vim else export EDITOR=vi fi [ $(command -v rg) ] && alias grep='rg -L' || alias grep='grep --color' function ud() { wd dots && git pull for i in $XDG_DATA_HOME/repos/zsh_modules/*; do sh -c "cd $i && git pull"; done nvim -c "PlugUpdate" -c "PlugClean" -c "q" -c "q" rm -rf ~/go cd } function upgrade() { case $(lsb_release -i | awk '{print $3}') in Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;; VoidLinux) xbps-install -Su && xbps-remove -RoO ;; esac }