This commit is contained in:
Barrett Ruth 2026-02-13 13:39:01 -05:00
parent 490b13b1d2
commit b929b3e617
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 6 additions and 5 deletions

View file

@ -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
}