summaryrefslogtreecommitdiff
path: root/zsh/aliasrc
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-09-03 14:53:07 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-09-03 14:53:07 -0500
commitbee1045917bec003cd44dffbae6e8d02a589e448 (patch)
tree3b7e8ce46ad713bbfd5e9331c44df82e8e439e33 /zsh/aliasrc
parent0d2585f5d5dbbba5a0df1d30fd7f434d740a6d7e (diff)
downloaddotconfig-bee1045917bec003cd44dffbae6e8d02a589e448.tar.xz
dotconfig-bee1045917bec003cd44dffbae6e8d02a589e448.zip
changed loading of aliases to be more portable
Diffstat (limited to 'zsh/aliasrc')
-rwxr-xr-xzsh/aliasrc23
1 files changed, 4 insertions, 19 deletions
diff --git a/zsh/aliasrc b/zsh/aliasrc
index 87300fe..beb232a 100755
--- a/zsh/aliasrc
+++ b/zsh/aliasrc
@@ -31,27 +31,12 @@ alias \
cdw="cd ~/.local/src/sites" \
hw="cd ~/docs/school" \
-# Package management
-[ "$COMPUTER" = "laptop" ] && alias \
- xi="sudo xbps-install" \
- xq="xbps-query -R --search" \
- xr="sudo xbps-remove"
-[ "$COMPUTER" = "desktop" ] && alias \
- e="sudo emerge" \
- eaum="sudo emerge --autounmask-continue" \
-
# Power scripts
alias \
- halt="sudo poweroff" \
- off="sudo poweroff" \
- reboot="sudo reboot" \
-
-[ "$COMPUTER" = "laptop" ] && alias \
- zzz="sudo zzz" \
- xbs="xbacklight -set" \
-
-[ "$COMPUTER" = "desktop" ] && alias \
- zzz="sudo s2ram" \
+ halt="launch shutdown" \
+ off="launch shutdown" \
+ reboot="launch reboot" \
+ zzz="launch suspend" \
# Colorize command output
alias \