switch aurman to yay

This commit is contained in:
Evgenii Alekseev 2018-11-12 21:15:19 +03:00
parent 393c8fa3e9
commit 352f3fe1a1
3 changed files with 40 additions and 6 deletions

View File

@ -2,6 +2,6 @@
pacman() { pacman() {
/usr/bin/sudo /usr/bin/pacman $* && echo "$*" | grep -q "S\|R\|U" && rehash /usr/bin/sudo /usr/bin/pacman $* && echo "$*" | grep -q "S\|R\|U" && rehash
} }
aurman() { yay() {
/usr/bin/aurman $* && echo "$*" | grep -q "S\|R\|U" && rehash /usr/bin/yay $* && echo "$*" | grep -q "S\|R\|U" && rehash
} }

View File

@ -1,7 +1,7 @@
# pacman commands with repo variations # pacman commands with repo variations
aurtest() { yaytest() {
/usr/bin/aurman --config /etc/pactest.conf $* && echo "$*" | grep -q "S\|R\|U" && rehash /usr/bin/yay --config /etc/pactest.conf $* && echo "$*" | grep -q "S\|R\|U" && rehash
} }
auraur() { yayaur() {
/usr/bin/aurman --config /etc/pacaur.conf $* && echo "$*" | grep -q "S\|R\|U" && rehash /usr/bin/yay --config /etc/pacaur.conf $* && echo "$*" | grep -q "S\|R\|U" && rehash
} }

34
zsh/tmux.zsh Normal file
View File

@ -0,0 +1,34 @@
#
# Defines tmux aliases and provides for auto launching it at start-up.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Colin Hebert <hebert.colin@gmail.com>
#
# Aliases
alias ta="tmux attach-session"
alias tl="tmux list-sessions"
# Auto Start
if [[ -z "$TMUX" ]]; then
tmux_session='#OMZ'
if ! tmux has-session -t "$tmux_session" 2> /dev/null; then
# Disable the destruction of unattached sessions globally.
tmux set-option -g destroy-unattached off &> /dev/null
# Create a new session.
tmux new-session -d -s "$tmux_session"
# Disable the destruction of the new, unattached session.
tmux set-option -t "$tmux_session" destroy-unattached off &> /dev/null
# Enable the destruction of unattached sessions globally to prevent
# an abundance of open, detached sessions.
tmux set-option -g destroy-unattached on &> /dev/null
fi
exec tmux new-session -t "$tmux_session"
fi