Skip to content

Commit

Permalink
Truncate tab title longer than 40 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
yous committed Apr 11, 2016
1 parent 243bc1e commit 41824e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lime.plugin.zsh
Expand Up @@ -82,7 +82,10 @@ prompt_lime_tab_title() {
if [ "$#" -eq 1 ]; then
echo -n "$(prompt_lime_first_command "$1")"
else
print -Pn '%~'
# `%40<..<` truncates following string longer than 40 characters with `..`.
# `%~` is current working directory with `~` instead of full `$HOME` path.
# `%<<` sets the end of string to truncate.
print -Pn '%40<..<%~%<<'
fi
}

Expand Down

0 comments on commit 41824e8

Please sign in to comment.