diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2022-11-03 11:55:33 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2022-11-03 11:55:33 -0500 |
commit | 0146107851a7f6a05b1a2146e275b631edf20338 (patch) | |
tree | 2652b7d3a04cc32656b54bd7f2ab1dfed56847b2 /zsh/zscripts/aliasrc.zsh | |
parent | a0943a0a387400afc8e49e7a626532e73990d24f (diff) | |
download | dotconfig-0146107851a7f6a05b1a2146e275b631edf20338.tar.xz dotconfig-0146107851a7f6a05b1a2146e275b631edf20338.zip |
idk
Diffstat (limited to 'zsh/zscripts/aliasrc.zsh')
-rwxr-xr-x | zsh/zscripts/aliasrc.zsh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zsh/zscripts/aliasrc.zsh b/zsh/zscripts/aliasrc.zsh index 308690d..8d2f86b 100755 --- a/zsh/zscripts/aliasrc.zsh +++ b/zsh/zscripts/aliasrc.zsh @@ -6,10 +6,11 @@ typeset -A repaliases=( htop htim mutt neomutt vim nvim - sudo "$SUDO" + sudo "${SUDO:- }" ) for alias rep in ${(kv)repaliases}; do command -v $rep >/dev/null && alias $alias=$rep; done # Tests if replacement exists before creating alias + # Shorten program names alias \ open="xdg-open" \ @@ -63,3 +64,7 @@ alias \ mbsync="mbsync --config $MBSYNCRC" \ startx="startx $X11CONFIG/xinitrc" \ +# Copy-pasting from internet +alias \ + \$="" \ + \#="${SUDO-sudo}" \ |