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)' \
|
nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \
|
||||||
zshrc='$EDITOR ~/.zshrc' \
|
zshrc='$EDITOR ~/.zshrc' \
|
||||||
fstab='sudoedit /etc/fstab' \
|
fstab='sudoedit /etc/fstab' \
|
||||||
hste='$EDITOR $HISTFILE' \
|
hst='$EDITOR $HISTFILE' \
|
||||||
|
|
||||||
# Git cLONE
|
# Git cLONE
|
||||||
alias glone="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"
|
[ -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 >>>
|
# # TODO: remove all aliases that refrence programs which do not exist >>>
|
||||||
|
# alias fdsa=not_an_alias
|
||||||
# validate_alias() {
|
# validate_alias() {
|
||||||
# # check if the alias points to an alias
|
# echo "validating alias $1"
|
||||||
# if alias "$(alias lsd | grep -Po "(?<=').*(?=')")"; then
|
# if alias "$1";then
|
||||||
# :
|
# validate_alias ${1}
|
||||||
# else
|
# 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
|
# for ALIAS in $(alias | cut -d = -f 1);do
|
||||||
# validate_alias "$ALIAS" &&
|
# ! validate_alias "$ALIAS" &&
|
||||||
# unalias "$ALIAS" &&
|
# unalias "$ALIAS" &&
|
||||||
# echo "alias $ALIAS was removed"
|
# echo "alias $ALIAS was removed"
|
||||||
# done # <<<
|
# done # <<<
|
||||||
|
|
||||||
}
|
}
|
||||||
# <<<
|
# <<<
|
||||||
### Functions >>>
|
### Functions >>>
|
||||||
|
|
Loading…
Add table
Reference in a new issue