summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2023-02-09 10:58:26 -0600
committerMatt Strapp <matt@mattstrapp.net>2023-02-09 10:58:26 -0600
commit9eb1e4513d2746036877d650ea77036f80153eef (patch)
tree252badd87136f5308304e564b9a32920c1fe33b4
parentPATH shenanigans (diff)
downloaddotfiles-9eb1e4513d2746036877d650ea77036f80153eef.tar
dotfiles-9eb1e4513d2746036877d650ea77036f80153eef.tar.gz
dotfiles-9eb1e4513d2746036877d650ea77036f80153eef.tar.bz2
dotfiles-9eb1e4513d2746036877d650ea77036f80153eef.tar.lz
dotfiles-9eb1e4513d2746036877d650ea77036f80153eef.tar.xz
dotfiles-9eb1e4513d2746036877d650ea77036f80153eef.tar.zst
dotfiles-9eb1e4513d2746036877d650ea77036f80153eef.zip
cleanup + doas alias
-rw-r--r--sh/.config/shell/aliasrc17
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" \