Created dir rc.d and moved/splited stuff from bashrc to rc.d/*
This commit is contained in:
parent
ab3b20c12f
commit
919df7d554
11
rc.d/termtitle
Normal file
11
rc.d/termtitle
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Change the window title of X terminals
|
||||
case $TERM in
|
||||
xterm*|rxvt*|urxvt*|Eterm)
|
||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND='echo -ne "\033k${USER}@${HOSTNAME%%.*}\033\\"'
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user