diff options
Diffstat (limited to 'sh/.config')
-rw-r--r-- | sh/.config/shell/aliasrc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sh/.config/shell/aliasrc b/sh/.config/shell/aliasrc index c5dc9ea..2abfdb7 100644 --- a/sh/.config/shell/aliasrc +++ b/sh/.config/shell/aliasrc @@ -11,7 +11,12 @@ for x in mount umount sv emerge apt pacman updatedb su ; do alias $x="sudo $x" done -alias sudo='sudo ' +if command -v doas &>/dev/null +then + alias sudo='doas' +else + alias sudo='sudo ' +fi # Verbosity and settings that you pretty much just always are going to want. alias \ @@ -28,8 +33,7 @@ alias \ df="df -h" \ du="dust -r" \ free="free -m" \ - gdb="gdb -q -nh -x "$XDG_CONFIG_HOME"/gdb/init" \ - # paru="yay" \ + gdb='gdb -q -nh -x "$XDG_CONFIG_HOME/gdb/init' \ yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"' \ # Colorize commands when possible. alias \ @@ -40,9 +44,6 @@ alias \ grep="rg --color=auto" \ diff="delta" \ cat='bat --paging=never --style=plain' \ - #bat='prettybat' \ - #ccat="highlight --out-format=ansi" \ - #ssh="mosh" \ # These common commands are just too long! Abbreviate them. alias \ @@ -59,7 +60,3 @@ alias \ xq="xbps-query" \ z="zathura" -#alias \ -# magit="nvim -c MagitOnly" \ -# ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc" \ -# weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \ |