From 624069ade37edc1ad3ac9233988452536f253aec Mon Sep 17 00:00:00 2001 From: tomit4 Date: Thu, 25 Nov 2021 11:42:57 -0800 Subject: [PATCH] optimized workflow in tmux using an mmux alias --- .tmux.conf | 7 +++++-- bashrc.txt | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 56d3eee9..3f27b560 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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 diff --git a/bashrc.txt b/bashrc.txt index 165cdb2e..2b1f742d 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -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"