diff options
author | Cody Hiar <codyfh@gmail.com> | 2017-04-20 19:37:10 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2017-04-20 19:37:10 -0600 |
commit | 2dd809781527976307b47a598887062047e202c9 (patch) | |
tree | 8b29daba2c1ef072f380ef530b7e7d9256e43eb3 /lib/tmux_adapter.sh | |
parent | baeb698bb006193559fc5aa1901180a3ccc73b7a (diff) |
Making tmux configuration much easier to manage
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 -} |