Clean up zshrc
This commit is contained in:
parent
da230494d1
commit
4dc488edc3
1 changed files with 1 additions and 24 deletions
25
files/zshrc
25
files/zshrc
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue