Change sudo to doas and update setup
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user