Change sudo to doas and update setup

This commit is contained in:
2021-07-16 16:54:09 +01:00
parent f4b28de956
commit 8541b1e861
9 changed files with 27 additions and 26 deletions

View File

@@ -0,0 +1 @@
keyserver keyserver.ubuntu.com

View File

@@ -1,16 +1,15 @@
#!/bin/sh
# Use neovim for vim if present
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# sudo not required for some system commands
# doas not required for some system commands
for x in mount umount sv pacman updatedb su ; do
alias $x="sudo $x"
alias $x="doas $x"
done
# Verbosity and settings that you pretty much just always are going to want.
@@ -35,18 +34,19 @@ alias \
alias \
ka="killall" \
YT="youtube-viewer" \
sdn="sudo shutdown -h now" \
sdn="doas shutdown -h now" \
e="$EDITOR" \
v="$EDITOR" \
cl="clear" \
p="sudo pacman" \
p="doas pacman" \
z="zathura" \
ll="ls -l" \
la="ls -al" \
ag="alias | grep" \
lc="clone_from_labs" \
gc="clone_from_github" \
dgit="git --git-dir ~/.config/dotfiles/.git --work-tree=$HOME"
dgit="git --git-dir ~/.config/dotfiles/.git --work-tree=$HOME" \
sudo=doas
# Clone from labs
function clone_from_labs() {