aliases: formatting, better gs alias, and bug fix with alias lsd

This commit is contained in:
PowerUser64 2022-04-14 21:34:56 -07:00
parent 70d5d0a503
commit e79e0989e6

View file

@ -3,7 +3,7 @@
# use nvim rather than vim if the command exists # use nvim rather than vim if the command exists
alias \ alias \
vim='nvim' \ vim='nvim' \
vimdiff='nvim -d' vimdiff='nvim -d' \
alias \ alias \
vv='$EDITOR' \ vv='$EDITOR' \
@ -11,7 +11,8 @@ alias \
sedit='sudoedit' \ sedit='sudoedit' \
# I do this too much by accident smh my head # I do this too much by accident smh my head
alias :q='exit' \ alias \
:q='exit' \
q='exit' \ q='exit' \
# rmdir is long # rmdir is long
@ -33,8 +34,8 @@ alias bc='bc -ql' # Make bc usable for fast math
[ -z "$VIMRUNTIME" ] && [ -z "$VIMRUNTIME" ] &&
alias glow='glow -p' # force Glow to preview with `less` if not in vim alias glow='glow -p' # force Glow to preview with `less` if not in vim
# I hate it when I get ghost script instead of git status. this will be removed # I hate it when I get ghost script instead of git status
alias gs="echo 'you don'\''t really want ghost script, do you?'" alias gs='echo "you don'\''t $(tput sitm)really$(tput sgr0) want ghost script now, do you?"'
# tell make to use all cpu cores # tell make to use all cpu cores
alias make='make -j$(nproc)' alias make='make -j$(nproc)'
@ -52,10 +53,10 @@ alias \
# shellcheck disable=SC2139 # shellcheck disable=SC2139
alias \ alias \
parue="$(which paru) --color=auto --sudoloop --newsonupgrade --pgpfetch --upgrademenu --bottomup --fm nvim" \ parue="$(which paru) --color=auto --sudoloop --newsonupgrade --pgpfetch --upgrademenu --bottomup --fm nvim" \
paru='parue --skipreview' paru='parue --skipreview' \
if command -v lsd > /dev/null; then if command -v lsd > /dev/null; then
$IS_TTY && alias ls=lsd ! $IS_TTY && alias ls=lsd
alias lsd='lsd --group-dirs=first' alias lsd='lsd --group-dirs=first'
fi fi
# <<< # <<<
@ -85,7 +86,10 @@ alias \
zc='$EDITOR ~/.zshrc' \ zc='$EDITOR ~/.zshrc' \
sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \ sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \
fstab='sudoedit /etc/fstab' \ fstab='sudoedit /etc/fstab' \
hst='$EDITOR $HISTFILE' \ histe='$EDITOR $HISTFILE' \
# Get me to my code faster
[ -n "$C" ] && alias cdc='cd "$C" && source ../bin/utils.bashrc'
# Git cLONE # Git cLONE
alias glone="git clone" alias glone="git clone"