cleanups
This commit is contained in:
parent
490b13b1d2
commit
b929b3e617
2 changed files with 6 additions and 5 deletions
|
|
@ -12,10 +12,10 @@ require() {
|
|||
require tmux
|
||||
|
||||
get_scope() {
|
||||
_wname=$(tmux display-message -p '#{window_name}')
|
||||
case "$_wname" in
|
||||
ai@*|code@*|git@*|run@*|term@*|misc@*) printf '%s' "${_wname#*@}" ;;
|
||||
*) printf '%s' "$_wname" ;;
|
||||
_path=$(tmux display-message -p '#{pane_current_path}')
|
||||
case "$_path" in
|
||||
"$HOME") printf '~' ;;
|
||||
*) printf '%s' "${_path##*/}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue