Support shortened command & dir name in xterm title plugin

This allows the user to see only last level of the current path (if dirname is longer than 8 chars),
and only first word of the ongoing command line if it's longer than 8 chars.
This commit is contained in:
Álvaro Brey
2017-04-26 17:11:53 +02:00
parent 1155e536da
commit 597285cdfd
2 changed files with 17 additions and 3 deletions

View File

@@ -36,6 +36,10 @@ export SCM_CHECK=true
# Will otherwise fall back on $USER.
#export SHORT_USER=${USER:0:8}
# Set Xterm/screen/Tmux title with shortened command and directory.
# Uncomment this to set.
#export SHORT_TERM_LINE=true
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/djl/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt