diff --git a/.zshrc b/.zshrc index 5bac703..cbd8d12 100644 --- a/.zshrc +++ b/.zshrc @@ -121,7 +121,7 @@ nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \ zshrc='$EDITOR ~/.zshrc' \ fstab='sudoedit /etc/fstab' \ - hste='$EDITOR $HISTFILE' \ + hst='$EDITOR $HISTFILE' \ # Git cLONE alias glone="git clone" @@ -168,20 +168,19 @@ [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" # # TODO: remove all aliases that refrence programs which do not exist >>> + # alias fdsa=not_an_alias # validate_alias() { - # # check if the alias points to an alias - # if alias "$(alias lsd | grep -Po "(?<=').*(?=')")"; then - # : + # echo "validating alias $1" + # if alias "$1";then + # validate_alias ${1} # else - # # see if the thing the alias points to is an executable - # test -x "$(command -V "$1" | grep -Po "(?<=$1 is )/.*$")" - # fi # } # for ALIAS in $(alias | cut -d = -f 1);do - # validate_alias "$ALIAS" && + # ! validate_alias "$ALIAS" && # unalias "$ALIAS" && # echo "alias $ALIAS was removed" # done # <<< + } # <<< ### Functions >>>