Guest User

Untitled

a guest
Apr 24th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. export TERM=xterm-256color
  4. # Text color variables
  5. txtund=$(tput sgr 0 1) # Underline
  6. txtbld=$(tput bold) # Bold
  7.  
  8. txtblk=$(tput setaf 0) # Black
  9. txtred=$(tput setaf 1) # Red
  10. txtgrn=$(tput setaf 2) # Green
  11. txtylw=$(tput setaf 3) # Yellow
  12. txtblu=$(tput setaf 4) # Blue
  13. txtmag=$(tput setaf 5) # Magenta
  14. txtcyn=$(tput setaf 6) # Cyan
  15. txtwht=$(tput setaf 7) # White
  16.  
  17. bldblk=${txtbld}${txtblk} # Bold Black
  18. bldred=${txtbld}${txtred} # BoldRed
  19. bldgrn=${txtbld}${txtgrn} # BoldGreen
  20. bldylw=${txtbld}${txtylw} # BoldYellow
  21. bldblu=${txtbld}${txtblu} # Bold Blue
  22. bldmag=${txtbld}${txtmag} # Bold Magenta
  23. bldcyn=${txtbld}${txtcyn} # Bold Cyan
  24. bldwht=${txtbld}${txtwht} # Bold White
  25. txtrst=$(tput sgr0) # Reset
  26.  
  27. # Tmux Commands
  28.  
  29. printf "${bldred}****************************** TMUX Commands ******************************${txtrst}\n"
  30. printf "${bldgrn}* Creates new tmux session:${txtrst} ${bldcyn}tmux new -s <session_name>${txtrst}\n"
  31. printf "${bldgrn}* Attaches to an existing tmux session:${txtrst} ${bldcyn}tmux attach -t <session_name>${txtrst}\n"
  32. printf "${bldgrn}* Switches to an existing session:${txtrst} ${bldcyn}tmux switch -t <session_name>${txtrst}\n"
  33. printf "${bldgrn}* Lists all tmux sessions:${txtrst} ${bldcyn}tmux ls${txtrst}\n"
  34. printf "${bldgrn}* Detach from current session:${txtrst} ${bldcyn}tmux detach (prefix + d)${txtrst}\n"
  35. printf "${bldred}***************************************************************************${txtrst}\n"
Add Comment
Please, Sign In to add comment