File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env zsh
12# Copyright (c) 2016-present Sven Greb <[email protected] >23# This source code is licensed under the MIT license found in the license file.
34
@@ -8,7 +9,7 @@ NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE="src/nord-status-content-no-patche
89NORD_TMUX_STATUS_CONTENT_OPTION=" @nord_tmux_show_status_content"
910NORD_TMUX_STATUS_CONTENT_DATE_FORMAT=" @nord_tmux_date_format"
1011NORD_TMUX_NO_PATCHED_FONT_OPTION=" @nord_tmux_no_patched_font"
11- _current_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
12+ _current_dir=" ${0 : a : h} "
1213
1314__cleanup () {
1415 unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION
@@ -28,7 +29,7 @@ __load() {
2829 local no_patched_font=$( tmux show-option -gqv " $NORD_TMUX_NO_PATCHED_FONT_OPTION " )
2930 local date_format=$( tmux show-option -gqv " $NORD_TMUX_STATUS_CONTENT_DATE_FORMAT " )
3031
31- if [ " $( tmux show-option -gqv " clock-mode-style" ) " == ' 12' ]; then
32+ if [[ " $( tmux show-option -gqv " clock-mode-style" ) " == ' 12' ] ]; then
3233 tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT " %I:%M %p"
3334 else
3435 tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT " %H:%M"
You can’t perform that action at this time.
0 commit comments