Skip to content

Commit c416e43

Browse files
committed
Migrate nord.tmux file to ZSH shell
1 parent f7b6da0 commit c416e43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nord.tmux

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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
89
NORD_TMUX_STATUS_CONTENT_OPTION="@nord_tmux_show_status_content"
910
NORD_TMUX_STATUS_CONTENT_DATE_FORMAT="@nord_tmux_date_format"
1011
NORD_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"

0 commit comments

Comments
 (0)