|
1 | | -# Read user rc file. |
| 1 | +# Read user config file. |
2 | 2 |
|
3 | 3 | process_settings() { |
4 | | - __read_rcfile |
| 4 | + __read_config_file |
5 | 5 |
|
6 | 6 | if [ -z "$TMUX_POWERLINE_DEBUG_MODE_ENABLED" ]; then |
7 | 7 | export TMUX_POWERLINE_DEBUG_MODE_ENABLED="${TMUX_POWERLINE_DEBUG_MODE_ENABLED_DEFAULT}" |
@@ -53,8 +53,8 @@ process_settings() { |
53 | 53 |
|
54 | 54 | } |
55 | 55 |
|
56 | | -generate_default_rc() { |
57 | | - read -d '' rccontents << EORC |
| 56 | +generate_default_config() { |
| 57 | + read -d '' config_contents << EORC |
58 | 58 | # Default configuration file for tmux-powerline. |
59 | 59 | # Modeline { |
60 | 60 | # vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh |
@@ -100,17 +100,17 @@ EORC |
100 | 100 | segmentrc=$(generate_segmentrc | sed -e 's/^/\\t/g') |
101 | 101 | unset -f generate_segmentrc |
102 | 102 | local seg_name="${segment##*/}" |
103 | | - rccontents="${rccontents}\n\n# ${seg_name} {\n${segmentrc}\n# }" |
| 103 | + config_contents="${config_contents}\n\n# ${seg_name} {\n${segmentrc}\n# }" |
104 | 104 | fi |
105 | 105 | done |
106 | 106 |
|
107 | | - echo -e "$rccontents" > "$TMUX_POWERLINE_RCFILE_DEFAULT" |
108 | | - echo "Default configuration file generated to: ${TMUX_POWERLINE_RCFILE_DEFAULT}" |
109 | | - echo "Copy/move it to \"${TMUX_POWERLINE_RCFILE}\" and make your changes." |
| 107 | + echo -e "$config_contents" > "$TMUX_POWERLINE_CONFIG_FILE_DEFAULT" |
| 108 | + echo "Default configuration file generated to: ${TMUX_POWERLINE_CONFIG_FILE_DEFAULT}" |
| 109 | + echo "Copy/move it to \"${TMUX_POWERLINE_CONFIG_FILE}\" and make your changes." |
110 | 110 | } |
111 | 111 |
|
112 | | -__read_rcfile() { |
113 | | - if [ -f "$TMUX_POWERLINE_RCFILE" ]; then |
114 | | - source "$TMUX_POWERLINE_RCFILE" |
| 112 | +__read_config_file() { |
| 113 | + if [ -f "$TMUX_POWERLINE_CONFIG_FILE" ]; then |
| 114 | + source "$TMUX_POWERLINE_CONFIG_FILE" |
115 | 115 | fi |
116 | 116 | } |
0 commit comments