mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-15 04:25:50 -06:00
zsh: Set autologin to tmux
This commit is contained in:
26
zsh/.zshrc
26
zsh/.zshrc
@@ -126,8 +126,12 @@ alias v='wl-paste'
|
||||
|
||||
alias codium='flatpak run com.vscodium.codium'
|
||||
|
||||
# Tmux Aliases
|
||||
alias tclasses='tmux attach -t classes'
|
||||
###############################################################################
|
||||
#
|
||||
|
||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ] && [ -z "$NVIM" ]; then
|
||||
tmux a -t default || exec tmux new -s default && exit;
|
||||
fi
|
||||
|
||||
###############################################################################
|
||||
# Custom Functions
|
||||
@@ -198,24 +202,6 @@ function extract()
|
||||
fi
|
||||
}
|
||||
|
||||
compins () {
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Missing file argument"
|
||||
kill -INT $$
|
||||
fi
|
||||
if [[ ! -f "$1" ]]; then
|
||||
echo "'$1' is not a valid file"
|
||||
kill -INT $$
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
*)
|
||||
echo "Not implemented or '$1' cannot be inspected via compins"
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
forget () {
|
||||
print "Forgetting last line with '$@'. Please reload shell after compeletion."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user