File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- #! /usr/bin/env bash
1
+ #! /usr/bin/env zsh
2
2
# Copyright (C) 2017-present Arctic Ice Studio <[email protected] >
3
3
# Copyright (C) 2017-present Sven Greb <[email protected] >
4
4
7
7
# License: MIT
8
8
# References:
9
9
# https://tmux.github.io
10
-
11
10
NORD_TMUX_COLOR_THEME_FILE=src/nord.conf
12
11
NORD_TMUX_VERSION=0.3.0
13
12
NORD_TMUX_STATUS_CONTENT_FILE=" src/nord-status-content.conf"
14
13
NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE=" src/nord-status-content-no-patched-font.conf"
15
14
NORD_TMUX_STATUS_CONTENT_OPTION=" @nord_tmux_show_status_content"
16
15
NORD_TMUX_NO_PATCHED_FONT_OPTION=" @nord_tmux_no_patched_font"
17
- _current_dir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
16
+ _current_dir=" ${0 : a : h} "
18
17
19
18
__cleanup () {
20
19
unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION
@@ -31,7 +30,7 @@ __load() {
31
30
local status_content=$( tmux show-option -gqv " $NORD_TMUX_STATUS_CONTENT_OPTION " )
32
31
local no_patched_font=$( tmux show-option -gqv " $NORD_TMUX_NO_PATCHED_FONT_OPTION " )
33
32
34
- if [ " $( tmux show-option -gqv " clock-mode-style" ) " == ' 12' ]; then
33
+ if [[ " $( tmux show-option -gqv " clock-mode-style" ) " == ' 12' ] ]; then
35
34
tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT " %I:%M %p"
36
35
else
37
36
tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT " %H:%M"
You can’t perform that action at this time.
0 commit comments