Clean up zshrc

This commit is contained in:
Jake Howard 2023-07-28 14:19:55 +01:00
parent da230494d1
commit 4dc488edc3
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -45,21 +45,16 @@ export EDITOR=$(which nvim)
# bash aliases
alias refresh="cd $PWD > /dev/null"
alias c="clear"
alias e="exit"
alias no="yes n"
alias open="mimeopen"
alias browse "mimeopen ."
alias browse="mimeopen ."
# colourify things!
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# Node stuff
alias ni="npm install"
@ -77,13 +72,6 @@ nb() {
fi
}
nr() {
for arg in "$@"
do
command npm run $arg
done
}
nvm() { # This takes ~1sec, so we lazy-load it.
unset $0
source "/usr/share/nvm/init-nvm.sh"
@ -121,17 +109,6 @@ git-cleanup() {
alias t="tig"
alias ts="tig status"
# Gnome
gd-lock() {
sessionid=`loginctl list-sessions | grep $USER | awk '{print $1}'`
loginctl lock-session $sessionid
}
gd-unlock() {
sessionid=`loginctl list-sessions | grep $USER | awk '{print $1}'`
loginctl unlock-session $sessionid
}
# miscellaneous software aliases
alias serve="/usr/bin/python3 -m http.server"
alias regen-ssh-conf="assh config build > ~/.ssh/config"