optimized workflow in tmux using an mmux alias

This commit is contained in:
tomit4 2021-11-25 11:42:57 -08:00
parent f9c4917298
commit 624069ade3
2 changed files with 10 additions and 4 deletions

View file

@ -3,6 +3,9 @@ unbind C-b
set -g prefix C-x
bind C-x send-prefix
# Splitting the panes with | (vertical) and - (horizontal)
bind + split-window -h
# Splitting the panes with + (vertical) and - (horizontal)
bind = split-window -h
bind - split-window -v
# Enable mouse support
set -g mouse on

View file

@ -169,11 +169,13 @@ alias music="cd ~/Music"
alias vids="cd ~/Videos"
alias notes="cd ~/Documents/notes"
alias config="cd ~/.config"
alias cache="cd ~/.cache"
alias Code="cd ~/Documents/Code"
alias cplus="cd ~/Documents/Code/cpp"
alias js="cd ~/Documents/Code/javascript"
alias py="cd ~/Documents/Code/python"
alias ls="ls -liasSh --color=auto"
alias {ex,esc}="exit"
alias {his,hist}="history"
alias bluepill="cmatrix -bm -C cyan"
alias redpill="cmatrix -bm -C red"
@ -185,6 +187,7 @@ alias view="viewnior"
alias serve="live-server"
alias tree="tree -ad -L 3 --prune -C"
alias {nv,nvi}="nvim"
alias {mymux,memux,mmux}="tmux new-session \; send-keys 'nvim' C-m\; split-window -v -p 12\; send-keys 'clear' C-m\; select-pane -t 0\;"
alias {mi,mic}="micro"
alias {mysql,maria,mdb}="mariadb"
alias {ss,wi,ssid}="doas iw wlan0 scan | grep SSID"
@ -210,9 +213,9 @@ alias ytdl="youtube-dl"
alias thinkorswim="~/thinkorswim/thinkorswim &"
alias {vs,vsc,code}="codium"
alias {cl,cls}="clear"
alias shutdown="doas shutdown now"
alias shutdown="doas shutdown -h now"
alias reboot="doas reboot"
alias log="xfce4-session-logout --logout"
alias log="xfce4-session-logout --logout:wq"
alias curltime="curl -w \"@$HOME/Documents/notes/curl-format.txt\" -o /dev/null -s"
alias ipaddr="curl ifconfig.me"
alias killport="fuser -k"