summaryrefslogtreecommitdiffstats
path: root/dot_config/zsh/aliasrc
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/zsh/aliasrc')
-rw-r--r--dot_config/zsh/aliasrc11
1 files changed, 6 insertions, 5 deletions
diff --git a/dot_config/zsh/aliasrc b/dot_config/zsh/aliasrc
index 37a6f17..5b933ed 100644
--- a/dot_config/zsh/aliasrc
+++ b/dot_config/zsh/aliasrc
@@ -7,14 +7,15 @@
[ -x "$(command -v code-insiders)" ] && [ ! -x "$(command -v code)" ] && alias code="code-insiders"
# Use $XINITRC variable if file exists.
-[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
+[ -f "$XINITRC" ] && alias startx='startx "$XINITRC"'
# sudo not required for some system commands
for x in mount umount sv emerge apt pacman updatedb su ; do
- alias $x="sudo $x"
+ # shellcheck disable=SC2139
+ alias $x='sudo $x'
done
-if command -v doas &>/dev/null
+if command -v doas >/dev/null 2>&1
then
alias sudo='doas'
else
@@ -54,8 +55,8 @@ alias \
trem="transmission-remote" \
YT="youtube-viewer" \
sdn="sudo shutdown -h now" \
- e="$EDITOR" \
- v="$EDITOR" \
+ e="\$EDITOR" \
+ v="\$EDITOR" \
em="sudo emerge" \
p="sudo pacman" \
xi="sudo xbps-install" \