diff options
Diffstat (limited to 'lib/tmux_adapter.sh')
-rw-r--r-- | lib/tmux_adapter.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/tmux_adapter.sh b/lib/tmux_adapter.sh deleted file mode 100644 index 17674e4..0000000 --- a/lib/tmux_adapter.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Get the current path in the segment. -get_tmux_cwd() { - local env_name=$(tmux display -p "TMUXPWD_#D" | tr -d %) - local env_val=$(tmux show-environment | grep --color=never "$env_name") - # The version below is still quite new for tmux. Uncomment this in the future :-) - #local env_val=$(tmux show-environment "$env_name" 2>&1) - - if [[ ! $env_val =~ "unknown variable" ]]; then - local tmux_pwd=$(echo "$env_val" | sed 's/^.*=//') - echo "$tmux_pwd" - fi -} |