Pikaur > yay. Try tmux attach first

This commit is contained in:
Sage Vaillancourt 2023-12-27 16:25:08 -05:00
parent e69c38cf07
commit 806b44c192
1 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
if command -v yay &> /dev/null; then if command -v pikaur &> /dev/null; then
alias pacman="yay"
elif command -v pikaur &> /dev/null; then
alias pacman="sudo pikaur" alias pacman="sudo pikaur"
elif command -v yay &> /dev/null; then
alias pacman="yay"
else else
alias pacman="sudo pacman" alias pacman="sudo pacman"
fi fi
@ -32,6 +32,8 @@ function hearch {
alias hsearch='hearch' alias hsearch='hearch'
alias tmux="tmux attach || tmux"
alias caddyfile="sudo vim /etc/caddy/Caddyfile" alias caddyfile="sudo vim /etc/caddy/Caddyfile"
alias cf="sudo vim /etc/caddy/Caddyfile" alias cf="sudo vim /etc/caddy/Caddyfile"