Skip to content

Commit 005e463

Browse files
committed
Migrate nord.tmux file to ZSH shell
1 parent 4e2dc2a commit 005e463

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nord.tmux

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

@@ -7,14 +7,13 @@
77
# License: MIT
88
# References:
99
# https://tmux.github.io
10-
1110
NORD_TMUX_COLOR_THEME_FILE=src/nord.conf
1211
NORD_TMUX_VERSION=0.3.0
1312
NORD_TMUX_STATUS_CONTENT_FILE="src/nord-status-content.conf"
1413
NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE="src/nord-status-content-no-patched-font.conf"
1514
NORD_TMUX_STATUS_CONTENT_OPTION="@nord_tmux_show_status_content"
1615
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}"
1817

1918
__cleanup() {
2019
unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION
@@ -31,7 +30,7 @@ __load() {
3130
local status_content=$(tmux show-option -gqv "$NORD_TMUX_STATUS_CONTENT_OPTION")
3231
local no_patched_font=$(tmux show-option -gqv "$NORD_TMUX_NO_PATCHED_FONT_OPTION")
3332

34-
if [ "$(tmux show-option -gqv "clock-mode-style")" == '12' ]; then
33+
if [[ "$(tmux show-option -gqv "clock-mode-style")" == '12' ]]; then
3534
tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT "%I:%M %p"
3635
else
3736
tmux set-environment -g NORD_TMUX_STATUS_TIME_FORMAT "%H:%M"

0 commit comments

Comments
 (0)