shell: improve tmux and edit aliases
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user