zsh: alias mod: hste is now hst
This commit is contained in:
parent
00f7e63d74
commit
6c7c9aea5c
1 changed files with 7 additions and 8 deletions
15
.zshrc
15
.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 >>>
|
||||
|
|
Loading…
Add table
Reference in a new issue