Created
August 15, 2019 19:12
-
-
Save kennyng/54c87e575e4b71832ed9cc248c47fb6f to your computer and use it in GitHub Desktop.
Add tmux info to shell prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .tmux.conf: Disable status bar | |
set -g status off | |
# .bashrc: Update prompt info and styling | |
PS1='\[\033[33m\]$(prompt tmux)\[\033[00m\]'"$format"' \[\033[35m\]$(prompt git)\[\033[00m\]\[\033[31m\]$(prompt job)\[\033[00m\]\n\$ ' | |
tmux) | |
# Check for tmux. | |
if ! hash tmux 2>/dev/null ; then | |
return 1 | |
fi | |
if [[ "$TERM" == screen* ]] && [ -n "$TMUX" ]; then | |
printf '[tmux]' | |
fi | |
;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment