Ignore files that begin with an underscore (bandaid for #108)
This commit is contained in:
17
plugins/available/_xterm.plugins.bash
Normal file
17
plugins/available/_xterm.plugins.bash
Normal file
@@ -0,0 +1,17 @@
|
||||
set_xterm_title () {
|
||||
local title="$1"
|
||||
echo -ne "\e]0;$title\007"
|
||||
}
|
||||
|
||||
|
||||
precmd () {
|
||||
set_xterm_title "${USER}@${HOSTNAME} `dirs -0` $PROMPTCHAR"
|
||||
}
|
||||
|
||||
preexec () {
|
||||
set_xterm_title "$1 {`dirs -0`} (${USER}@${HOSTNAME})"
|
||||
}
|
||||
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*) preexec_install;;
|
||||
esac
|
||||
Reference in New Issue
Block a user