diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-11-06 16:19:47 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-11-06 16:19:47 -0600 |
commit | a07a0b9d908ac883d82bfc6d90a7d514ad9956c7 (patch) | |
tree | c6657964086fdd67a7a3a38a0e2ab06a97da34a1 /dot_config/zsh/aliasrc | |
parent | add kitty back but only when not running in SSH (diff) | |
download | dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.gz dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.bz2 dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.lz dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.xz dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.tar.zst dotfiles-a07a0b9d908ac883d82bfc6d90a7d514ad9956c7.zip |
Make shellcheck stop complaining
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r-- | dot_config/zsh/aliasrc | 11 |
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" \ |