Sfoglia il codice sorgente

zsh: remove old aliases and pwd hacks

Thomas Dy 4 anni fa
parent
commit
1a862a4363
2 ha cambiato i file con 0 aggiunte e 27 eliminazioni
  1. 0 18
      .zsh/pwdfile.zsh
  2. 0 9
      .zsh/sysad.zsh

+ 0 - 18
.zsh/pwdfile.zsh

@@ -1,18 +0,0 @@
-# this is for making new terminals cd to the same directory of existing ones
-
-if [[ -x $(which xdotool 2> /dev/null) ]] && [[ -n "$DISPLAY" ]] then
-  CURRDESKTOP=$(xdotool get_desktop)
-  PWDFILE="$HOME/.config/bspwm/$CURRDESKTOP.pwd"
-
-  function chpwd {
-      pwd > $PWDFILE
-  }
-
-  ACTIVEWIN=$(xdotool search --desktop $CURRDESKTOP --class $TERMINAL | wc -l)
-
-  if [[ $ACTIVEWIN -le 1 ]]; then
-      chpwd
-  else
-      cd "$(cat $PWDFILE)"
-  fi
-fi

+ 0 - 9
.zsh/sysad.zsh

@@ -1,9 +0,0 @@
-alias Start="sudo systemctl start"
-alias Stop="sudo systemctl stop"
-alias Restart="sudo systemctl restart"
-alias Reload="sudo systemctl reload"
-alias Enable="sudo systemctl enable"
-alias Disable="sudo systemctl disable"
-alias Status="sudo systemctl status"
-alias DaemonReload="sudo systemctl --system daemon-reload"
-alias Log="sudo journalctl -u"