mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-04-24 16:07:17 +00:00
switch aurman to yay
This commit is contained in:
parent
393c8fa3e9
commit
352f3fe1a1
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
34
zsh/tmux.zsh
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user