Add bash configuration files

This commit is contained in:
xavier
2013-04-24 16:58:31 +02:00
parent 1849cd96a2
commit 9fad99b12f
30 changed files with 570 additions and 0 deletions

17
libs/term.bash Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
function term_change_title
{
case $TERM in
# Change the window title of X terminals
xterm*|rxvt*|urxvt*|Eterm)
PROMPT_COMMAND='echo -ne "\033]0;${1}\007"'
;;
# Change the window title of screen terminals
screen*)
PROMPT_COMMAND='echo -ne "\033k${1}\033\\"'
;;
esac
}