Created
March 14, 2013 13:05
-
-
Save kwbock/5161135 to your computer and use it in GitHub Desktop.
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
# general | |
set-option -g default-path ~/ | |
# mouse on with ^B m | |
bind m \ | |
set -g mode-mouse on \;\ | |
set -g mouse-resize-pane on \;\ | |
set -g mouse-select-pane on \;\ | |
set -g mouse-select-window on \;\ | |
display 'Mouse: ON' | |
# Toggle mouse off with ^B M | |
bind M \ | |
set -g mode-mouse off \;\ | |
set -g mouse-resize-pane off \;\ | |
set -g mouse-select-pane off \;\ | |
set -g mouse-select-window off \;\ | |
display 'Mouse: OFF' | |
# UI | |
source ~/.tmux/tmux-colors-solariazed/tmuxcolors-256.conf | |
set-option set-titles off | |
set-option -g default-terminal "screen-256color" | |
set-option -g pane-active-border-fg colour33 | |
set-option -g message-bg "default" | |
set-option -g message-attr "bold" | |
set-option -g visual-activity on | |
set-option -g visual-content on | |
set-option -g visual-bell off | |
# powerline conf | |
set-window-option -g clock-mode-style 12 | |
set-window-option -g allow-rename | |
set-window-option -g automatic-rename | |
set-window-option -g window-status-format "#I:#W#F" | |
set-window-option -g window-status-current-format "#[fg=colour235, bg=colour27]⮀#[fg=colour255, bg=colour27] #I ⮁ #W #[fg=colour27, bg=colour235]⮀" | |
set-option -g status on | |
set-option -g status-position "bottom" | |
set-option -g status-utf8 on | |
# Left status | |
set-option -g status-justify "centre" | |
set-option -g status-left-length 90 | |
set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)" | |
# Right status | |
set-option -g status-right-length 120 | |
set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)" | |
# keybindings | |
bind-key down new-window | |
bind-key left prev | |
bind-key right next | |
unbind-key r | |
bind r \ | |
source-file ~/.tmux.conf;\ | |
display "source-file done" |
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
++ dirname ./powerline.sh | |
+ export TMUX_POWERLINE_DIR_HOME=. | |
+ TMUX_POWERLINE_DIR_HOME=. | |
+ source ./config/helpers.sh | |
+ source ./config/paths.sh | |
++ export TMUX_POWERLINE_DIR_LIB=./lib | |
++ TMUX_POWERLINE_DIR_LIB=./lib | |
++ export TMUX_POWERLINE_DIR_SEGMENTS=./segments | |
++ TMUX_POWERLINE_DIR_SEGMENTS=./segments | |
++ export TMUX_POWERLINE_DIR_TEMPORARY=/tmp/tmux-powerline_deploy | |
++ TMUX_POWERLINE_DIR_TEMPORARY=/tmp/tmux-powerline_deploy | |
++ export TMUX_POWERLINE_DIR_THEMES=./themes | |
++ TMUX_POWERLINE_DIR_THEMES=./themes | |
++ export TMUX_POWERLINE_RCFILE=/home/deploy/.tmux-powerlinerc | |
++ TMUX_POWERLINE_RCFILE=/home/deploy/.tmux-powerlinerc | |
++ export TMUX_POWERLINE_RCFILE_DEFAULT=/home/deploy/.tmux-powerlinerc.default | |
++ TMUX_POWERLINE_RCFILE_DEFAULT=/home/deploy/.tmux-powerlinerc.default | |
++ '[' '!' -d /tmp/tmux-powerline_deploy ']' | |
+ source ./config/shell.sh | |
++ export SHELL_PLATFORM=unknown | |
++ SHELL_PLATFORM=unknown | |
++ case "$OSTYPE" in | |
++ SHELL_PLATFORM=linux | |
++ export -f shell_is_linux | |
++ export -f shell_is_osx | |
++ export -f shell_is_bsd | |
+ source ./config/defaults.sh | |
++ export TMUX_POWERLINE_DEBUG_MODE_ENABLED_DEFAULT=false | |
++ TMUX_POWERLINE_DEBUG_MODE_ENABLED_DEFAULT=false | |
++ export TMUX_POWERLINE_PATCHED_FONT_IN_USE_DEFAULT=true | |
++ TMUX_POWERLINE_PATCHED_FONT_IN_USE_DEFAULT=true | |
++ export TMUX_POWERLINE_THEME_DEFAULT=default | |
++ TMUX_POWERLINE_THEME_DEFAULT=default | |
+ source ./lib/arg_processing.sh | |
+ source ./lib/formatting.sh | |
+ source ./lib/muting.sh | |
+ source ./lib/powerline.sh | |
+ source ./lib/rcfile.sh | |
+ powerline_muted right | |
++ __powerline_mute_file right | |
+++ tmux display -p '#S' | |
tmux: unknown option -- p | |
usage: display-message [-t target-client] [message] | |
++ local tmux_session= | |
++ echo -n /tmp/tmux-powerline_deploy/mute__right | |
+ '[' -e /tmp/tmux-powerline_deploy/mute__right ']' | |
+ process_settings | |
+ __read_rcfile | |
+ '[' -f /home/deploy/.tmux-powerlinerc ']' | |
+ source /home/deploy/.tmux-powerlinerc | |
++ export TMUX_POWERLINE_DEBUG_MODE_ENABLED=true | |
++ TMUX_POWERLINE_DEBUG_MODE_ENABLED=true | |
++ export TMUX_POWERLINE_PATCHED_FONT_IN_USE=true | |
++ TMUX_POWERLINE_PATCHED_FONT_IN_USE=true | |
++ export TMUX_POWERLINE_THEME=default | |
++ TMUX_POWERLINE_THEME=default | |
++ export TMUX_POWERLINE_DIR_USER_THEMES= | |
++ TMUX_POWERLINE_DIR_USER_THEMES= | |
++ export TMUX_POWERLINE_DIR_USER_SEGMENTS= | |
++ TMUX_POWERLINE_DIR_USER_SEGMENTS= | |
++ export TMUX_POWERLINE_SEG_BATTERY_TYPE=percentage | |
++ TMUX_POWERLINE_SEG_BATTERY_TYPE=percentage | |
++ export TMUX_POWERLINE_SEG_BATTERY_NUM_HEARTS=5 | |
++ TMUX_POWERLINE_SEG_BATTERY_NUM_HEARTS=5 | |
++ export TMUX_POWERLINE_SEG_DATE_FORMAT=%F | |
++ TMUX_POWERLINE_SEG_DATE_FORMAT=%F | |
++ export TMUX_POWERLINE_SEG_HOSTNAME_FORMAT=short | |
++ TMUX_POWERLINE_SEG_HOSTNAME_FORMAT=short | |
++ export TMUX_POWERLINE_SEG_MAILCOUNT_MAILBOX_TYPE=gmail | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_MAILBOX_TYPE=gmail | |
++ export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_USERNAME=kylewbock | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_USERNAME=kylewbock | |
++ export 'TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_PASSWORD=!coPbIn86B' | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_PASSWORD='!coPbIn86B' | |
++ export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_SERVER=gmail.com | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_SERVER=gmail.com | |
++ export TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_INTERVAL=5 | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_INTERVAL=5 | |
++ export TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX=/home/deploy/.mail/inbox/new | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX=/home/deploy/.mail/inbox/new | |
++ export TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX=/var/mail/deploy | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX=/var/mail/deploy | |
++ export TMUX_POWERLINE_SEG_PWD_MAX_LEN=40 | |
++ TMUX_POWERLINE_SEG_PWD_MAX_LEN=40 | |
++ export TMUX_POWERLINE_SEG_TIME_FORMAT=%H:%M | |
++ TMUX_POWERLINE_SEG_TIME_FORMAT=%H:%M | |
+ '[' -z true ']' | |
+ '[' -z true ']' | |
+ '[' -z default ']' | |
+ eval TMUX_POWERLINE_DIR_USER_SEGMENTS= | |
++ TMUX_POWERLINE_DIR_USER_SEGMENTS= | |
+ eval TMUX_POWERLINE_DIR_USER_THEMES= | |
++ TMUX_POWERLINE_DIR_USER_THEMES= | |
+ '[' -n '' ']' | |
+ source ./themes/default.sh | |
++ patched_font_in_use | |
++ '[' -z true -o true '!=' false ']' | |
++ TMUX_POWERLINE_SEPARATOR_LEFT_BOLD=$'\342\256\202' | |
++ TMUX_POWERLINE_SEPARATOR_LEFT_THIN=$'\342\256\203' | |
++ TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD=$'\342\256\200' | |
++ TMUX_POWERLINE_SEPARATOR_RIGHT_THIN=$'\342\256\201' | |
++ TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR=235 | |
++ TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR=255 | |
++ TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR=$'\342\256\200' | |
++ TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR=$'\342\256\202' | |
++ '[' -z ']' | |
++ TMUX_POWERLINE_LEFT_STATUS_SEGMENTS=("tmux_session_info 148 234" "hostname 33 0" "lan_ip 24 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_THIN}" "wan_ip 24 255" "vcs_branch 29 88" "vcs_compare 60 255" "vcs_staged 64 255" "vcs_modified 9 255" "vcs_others 245 0") | |
++ '[' -z ']' | |
++ TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS=("pwd 89 211" "mailcount 9 255" "now_playing 234 37" "load 237 167" "battery 137 127" "weather 37 255" "date_day 235 136" "date 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" "time 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}") | |
+ check_arg_side right | |
+ local side=right | |
+ '[' right == left -o right == right ']' | |
+ print_powerline right | |
+ local side=right | |
++ echo right | |
++ tr '[:lower:]' '[:upper:]' | |
+ local upper_side=RIGHT | |
+ eval 'local input_segments=("${TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS[@]}")' | |
++ input_segments=("${TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS[@]}") | |
++ local input_segments | |
+ powerline_segments=() | |
+ local powerline_segments | |
+ powerline_segment_contents=() | |
+ local powerline_segment_contents | |
+ __check_platform | |
+ '[' linux == unknown ']' | |
+ __process_segment_defaults | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='pwd 89 211 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='mailcount 9 255 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='now_playing 234 37 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='load 237 167 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='battery 137 127 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='weather 37 255 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='date_day 235 136 ⮂' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='date 235 136 ⮃' | |
+ for segment_index in '"${!input_segments[@]}"' | |
+ input_segment=(${input_segments[$segment_index]}) | |
+ local input_segment | |
+ eval 'local default_separator=$TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR' | |
++ local $'default_separator=\342\256\202' | |
+ powerline_segment_with_defaults=(${input_segment[0]:-"no_script"} ${input_segment[1]:-$TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR} ${input_segment[2]:-$TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR} ${input_segment[3]:-$default_separator}) | |
+ powerline_segments[$segment_index]='time 235 136 ⮃' | |
+ __process_scripts | |
+ for segment_index in '"${!powerline_segments[@]}"' | |
+ powerline_segment=(${powerline_segments[$segment_index]}) | |
+ local powerline_segment | |
+ '[' -n '' ']' | |
+ local script=./segments/pwd.sh | |
+ export TMUX_POWERLINE_CUR_SEGMENT_BG=89 | |
+ TMUX_POWERLINE_CUR_SEGMENT_BG=89 | |
+ export TMUX_POWERLINE_CUR_SEGMENT_FG=211 | |
+ TMUX_POWERLINE_CUR_SEGMENT_FG=211 | |
+ source ./segments/pwd.sh | |
++ source ./lib/tmux_adapter.sh | |
++ TMUX_POWERLINE_SEG_PWD_MAX_LEN_DEFAULT=40 | |
+ local output | |
++ run_segment | |
++ __process_settings | |
++ '[' -z 40 ']' | |
+++ get_tmux_cwd | |
++++ tmux display -p TMUXPWD_#D | |
++++ tr -d % | |
tmux: unknown option -- p | |
usage: display-message [-t target-client] [message] | |
+++ local env_name= | |
++++ tmux show-environment | |
++++ grep --color=never '' | |
+++ local 'env_val=-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
SSH_CONNECTION=38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
+++ [[ ! -DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
SSH_CONNECTION=38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID =~ unknown variable ]] | |
++++ echo '-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
SSH_CONNECTION=38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
++++ sed 's/^.*=//' | |
+++ local 'tmux_pwd=-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
+++ echo '-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
++ tcwd='-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
++ trunc_symbol=$'\302\267\302\267\302\267' | |
++ dir='-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
++ local max_len=40 | |
++ max_len=96 | |
++ ttcwd='-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
++ pwdoffset=0 | |
++ '[' 0 -gt 0 ']' | |
++ echo '-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
++ return 0 | |
+ output='-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' | |
+ local exit_code=0 | |
+ unset -f run_segment | |
+ '[' 0 -ne 0 ']' | |
+ '[' -n '-DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID' ']' | |
+ powerline_segment_contents[$segment_index]=' -DISPLAY | |
-SSH_AGENT_PID | |
-SSH_ASKPASS | |
-SSH_AUTH_SOCK | |
38.110.6.187 22721 10.72.74.187 22 | |
-WINDOWID ' | |
+ for segment_index in '"${!powerline_segments[@]}"' | |
+ powerline_segment=(${powerline_segments[$segment_index]}) | |
+ local powerline_segment | |
+ '[' -n '' ']' | |
+ local script=./segments/mailcount.sh | |
+ export TMUX_POWERLINE_CUR_SEGMENT_BG=9 | |
+ TMUX_POWERLINE_CUR_SEGMENT_BG=9 | |
+ export TMUX_POWERLINE_CUR_SEGMENT_FG=255 | |
+ TMUX_POWERLINE_CUR_SEGMENT_FG=255 | |
+ source ./segments/mailcount.sh | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX_DEFAULT=/home/deploy/.mail/inbox/new | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX_DEFAULT=/var/mail/deploy | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_SERVER_DEFAULT=gmail.com | |
++ TMUX_POWERLINE_SEG_MAILCOUNT_GMAIL_INTERVAL_DEFAULT=5 | |
+ local output | |
++ run_segment | |
++ __process_settings | |
++ '[' -z gmail.com ']' | |
++ '[' -z 5 ']' | |
++ eval TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX=/var/mail/deploy | |
+++ TMUX_POWERLINE_SEG_MAILCOUNT_MBOX_INBOX=/var/mail/deploy | |
++ '[' -z /home/deploy/.mail/inbox/new ']' | |
++ eval TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX=/home/deploy/.mail/inbox/new | |
+++ TMUX_POWERLINE_SEG_MAILCOUNT_MAILDIR_INBOX=/home/deploy/.mail/inbox/new | |
++ '[' -z /var/mail/deploy ']' | |
++ '[' -z gmail ']' | |
++ local count | |
++ case "$TMUX_POWERLINE_SEG_MAILCOUNT_MAILBOX_TYPE" in | |
+++ __count_gmail | |
+++ local tmp_file=/tmp/tmux-powerline_deploy/gmail_count.txt | |
+++ local override_passget=false | |
+++ '[' '!' -f /tmp/tmux-powerline_deploy/gmail_count.txt ']' | |
+++ let 'interval=60*5' | |
+++ shell_is_osx | |
+++ [[ linux == \o\s\x ]] | |
+++ shell_is_bsd | |
+++ [[ linux == \b\s\d ]] | |
+++ [[ linux == \o\s\x ]] | |
+++ shell_is_linux | |
+++ [[ linux == \l\i\n\u\x ]] | |
++++ stat -c %Y /tmp/tmux-powerline_deploy/gmail_count.txt | |
+++ last_update=1363266088 | |
++++ date +%s | |
+++ '[' 33 -gt 300 ']' | |
+++ '[' false == true ']' | |
++++ cat /tmp/tmux-powerline_deploy/gmail_count.txt | |
+++ count=0 | |
+++ echo 0 | |
+++ return 0 | |
++ count=0 | |
++ local exitcode=0 | |
++ '[' 0 -ne 0 ']' | |
++ [[ -n 0 ]] | |
++ [[ 0 -gt 0 ]] | |
++ return 0 | |
+ output= | |
+ local exit_code=0 | |
+ unset -f run_segment | |
+ '[' 0 -ne 0 ']' | |
+ '[' -n '' ']' | |
+ unset -v 'powerline_segments[1]' | |
+ for segment_index in '"${!powerline_segments[@]}"' | |
+ powerline_segment=(${powerline_segments[$segment_index]}) | |
+ local powerline_segment | |
+ '[' -n '' ']' | |
+ local script=./segments/now_playing.sh | |
+ export TMUX_POWERLINE_CUR_SEGMENT_BG=234 | |
+ TMUX_POWERLINE_CUR_SEGMENT_BG=234 | |
+ export TMUX_POWERLINE_CUR_SEGMENT_FG=37 | |
+ TMUX_POWERLINE_CUR_SEGMENT_FG=37 | |
+ source ./segments/now_playing.sh | |
++ source ./lib/text_roll.sh | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MAX_LEN_DEFAULT=40 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_TRIM_METHOD_DEFAULT=trim | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_ROLL_SPEED_DEFAULT=2 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_HOST_DEFAULT=localhost | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_PORT_DEFAULT=6600 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_UPDATE_PERIOD_DEFAULT=30 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_SIMPLE_FORMAT_DEFAULT='%artist% - %title%' | |
+ local output | |
++ run_segment | |
++ __process_settings | |
++ '[' -z '' ']' | |
++ export TMUX_POWERLINE_SEG_NOW_PLAYING_MAX_LEN=40 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MAX_LEN=40 | |
++ '[' -z '' ']' | |
++ export TMUX_POWERLINE_SEG_NOW_PLAYING_TRIM_METHOD=trim | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_TRIM_METHOD=trim | |
++ '[' -z '' ']' | |
++ export TMUX_POWERLINE_SEG_NOW_PLAYING_ROLL_SPEED=2 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_ROLL_SPEED=2 | |
++ '[' -z '' ']' | |
++ export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_HOST=localhost | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_HOST=localhost | |
++ '[' -z '' ']' | |
++ export TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_PORT=6600 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_PORT=6600 | |
++ '[' -z '' ']' | |
++ export 'TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_SIMPLE_FORMAT=%artist% - %title%' | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_MPD_SIMPLE_FORMAT='%artist% - %title%' | |
++ '[' -z '' ']' | |
++ export TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_UPDATE_PERIOD=30 | |
++ TMUX_POWERLINE_SEG_NOW_PLAYING_LASTFM_UPDATE_PERIOD=30 | |
++ '[' -z '' ']' | |
++ return 1 | |
+ output= | |
+ local exit_code=1 | |
+ unset -f run_segment | |
+ '[' 1 -ne 0 ']' | |
+ debug_mode_enabled | |
+ '[' -n true -a true '!=' false ']' | |
+ local seg_name=now_playing.sh | |
+ echo 'Segment '\''now_playing.sh'\'' exited with code 1. Aborting.' | |
+ exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment