Created
January 12, 2014 14:37
-
-
Save tacahiroy/8385336 to your computer and use it in GitHub Desktop.
init function for WeeChat on tmux
This file contains hidden or 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
| function weechat { | |
| if [ -x `which weechat-curses` ]; then | |
| if ! (ps aux | grep '[w]eechat-curses' 2>&1 > /dev/null); then | |
| tmux new-window -t ${WEECHAT_TMUX_WINNUM:-98} weechat-curses | |
| fi | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment