Safer E alias
This commit is contained in:
parent
53e828280c
commit
b3e40ed202
|
@ -42,7 +42,14 @@ alias de="dict.cc.py en de"
|
||||||
|
|
||||||
alias histoff="HISTFILE=/dev/null"
|
alias histoff="HISTFILE=/dev/null"
|
||||||
alias histon="HISTFILE=$HOME/.histfile"
|
alias histon="HISTFILE=$HOME/.histfile"
|
||||||
alias E="exec zsh"
|
E() {
|
||||||
|
if [[ -n $(jobs) ]]; then
|
||||||
|
echo "exec: You have suspended jobs."
|
||||||
|
else
|
||||||
|
builtin exec zsh
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# edit and refresh aliases
|
# edit and refresh aliases
|
||||||
aliases() {
|
aliases() {
|
||||||
|
|
Loading…
Reference in a new issue