Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- export TERM=xterm-256color
- # Text color variables
- txtund=$(tput sgr 0 1) # Underline
- txtbld=$(tput bold) # Bold
- txtblk=$(tput setaf 0) # Black
- txtred=$(tput setaf 1) # Red
- txtgrn=$(tput setaf 2) # Green
- txtylw=$(tput setaf 3) # Yellow
- txtblu=$(tput setaf 4) # Blue
- txtmag=$(tput setaf 5) # Magenta
- txtcyn=$(tput setaf 6) # Cyan
- txtwht=$(tput setaf 7) # White
- bldblk=${txtbld}${txtblk} # Bold Black
- bldred=${txtbld}${txtred} # BoldRed
- bldgrn=${txtbld}${txtgrn} # BoldGreen
- bldylw=${txtbld}${txtylw} # BoldYellow
- bldblu=${txtbld}${txtblu} # Bold Blue
- bldmag=${txtbld}${txtmag} # Bold Magenta
- bldcyn=${txtbld}${txtcyn} # Bold Cyan
- bldwht=${txtbld}${txtwht} # Bold White
- txtrst=$(tput sgr0) # Reset
- # Tmux Commands
- printf "${bldred}****************************** TMUX Commands ******************************${txtrst}\n"
- printf "${bldgrn}* Creates new tmux session:${txtrst} ${bldcyn}tmux new -s <session_name>${txtrst}\n"
- printf "${bldgrn}* Attaches to an existing tmux session:${txtrst} ${bldcyn}tmux attach -t <session_name>${txtrst}\n"
- printf "${bldgrn}* Switches to an existing session:${txtrst} ${bldcyn}tmux switch -t <session_name>${txtrst}\n"
- printf "${bldgrn}* Lists all tmux sessions:${txtrst} ${bldcyn}tmux ls${txtrst}\n"
- printf "${bldgrn}* Detach from current session:${txtrst} ${bldcyn}tmux detach (prefix + d)${txtrst}\n"
- printf "${bldred}***************************************************************************${txtrst}\n"
Add Comment
Please, Sign In to add comment