shell: improve tmux and edit aliases

This commit is contained in:
2025-09-20 11:30:07 +02:00
parent b11ccf5b82
commit 8fded47ae8

View File

@@ -1,9 +1,6 @@
alias v=nvim
alias v=vis
alias ll='ls -l'
alias ta='tmux attach -t'
alias tl='tmux list-sessions'
alias tn='tmux new -s'
alias fv='fzf --preview="bat --color=always --theme=Nord {}" --bind="enter:become(nvim {})"'
alias rgh='rg -.'
alias fdh='fd -H'
@@ -15,10 +12,22 @@ fi
alias nocaps='setxkbmap pl -option ctrl:nocaps'
alias fixdp='xrandr --output DP-0 --right-of DP-2'
vf() {
if [ -z "$1" ]; then
vis $(fzf)
tn() {
if [ $# -eq 0 ]; then
tmux new
else
vis $(fzf -q $1)
tmux new -s "$@"
fi
}
ta() {
if [ $# -eq 0 ]; then
tmux attach
else
tmux attach -t "$@"
fi
}
vf() {
fzf --bind 'enter:become:vis {}' -q "$1"
}