From a07a0b9d908ac883d82bfc6d90a7d514ad9956c7 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 6 Nov 2024 16:19:47 -0600 Subject: Make shellcheck stop complaining Signed-off-by: Matt Strapp --- dot_config/zsh/aliasrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dot_config/zsh/aliasrc') 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" \ -- cgit v1.2.3