File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env zsh
22# Copyright (C) 2017-present Arctic Ice Studio <[email protected] >33# Copyright (C) 2017-present Sven Greb <[email protected] >44
@@ -14,7 +14,7 @@ NORD_TMUX_STATUS_CONTENT_FILE="src/nord-status-content.conf"
1414NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE=" src/nord-status-content-no-patched-font.conf"
1515NORD_TMUX_STATUS_CONTENT_OPTION=" @nord_tmux_show_status_content"
1616NORD_TMUX_NO_PATCHED_FONT_OPTION=" @nord_tmux_no_patched_font"
17- _current_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
17+ _current_dir=" ${0 : a : h} "
1818
1919__cleanup () {
2020 unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION
@@ -31,7 +31,7 @@ __load() {
3131 local status_content=$( tmux show-option -gqv " $NORD_TMUX_STATUS_CONTENT_OPTION " )
3232 local no_patched_font=$( tmux show-option -gqv " $NORD_TMUX_NO_PATCHED_FONT_OPTION " )
3333
34- if [ " $( tmux show-option -gqv " clock-mode-style" ) " == ' 12' ]; then
34+ if [[ " $( tmux show-option -gqv " clock-mode-style" ) " == ' 12' ] ]; then
3535 tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT " %I:%M %p"
3636 else
3737 tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT " %H:%M"
You can’t perform that action at this time.
0 commit comments