From 4dc488edc389c3f627f3755ee6b9856439e2a386 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 28 Jul 2023 14:19:55 +0100 Subject: [PATCH] Clean up zshrc --- files/zshrc | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/files/zshrc b/files/zshrc index 3a19f6e..c0663e7 100644 --- a/files/zshrc +++ b/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"