From 9eb1e4513d2746036877d650ea77036f80153eef Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Thu, 9 Feb 2023 10:58:26 -0600 Subject: cleanup + doas alias --- sh/.config/shell/aliasrc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'sh/.config/shell/aliasrc') 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" \ -- cgit v1.2.3