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
alias \
vim='nvim' \
vimdiff='nvim -d'
vimdiff='nvim -d' \
alias \
vv='$EDITOR' \
@ -11,7 +11,8 @@ alias \
sedit='sudoedit' \
# I do this too much by accident smh my head
alias :q='exit' \
alias \
:q='exit' \
q='exit' \
# rmdir is long
@ -33,8 +34,8 @@ alias bc='bc -ql' # Make bc usable for fast math
[ -z "$VIMRUNTIME" ] &&
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
alias gs="echo 'you don'\''t really want ghost script, do you?'"
# I hate it when I get ghost script instead of git status
alias gs='echo "you don'\''t $(tput sitm)really$(tput sgr0) want ghost script now, do you?"'
# tell make to use all cpu cores
alias make='make -j$(nproc)'
@ -52,10 +53,10 @@ alias \
# shellcheck disable=SC2139
alias \
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
$IS_TTY && alias ls=lsd
! $IS_TTY && alias ls=lsd
alias lsd='lsd --group-dirs=first'
fi
# <<<
@ -85,7 +86,10 @@ alias \
zc='$EDITOR ~/.zshrc' \
sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \
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
alias glone="git clone"