Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gsf committed Nov 27, 2014
1 parent b21088b commit 2a6e6c9
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ alias la='ls -AF'
alias l='ls -F'

# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
if [ -f /etc/bash_completion ] && ! shopt -oq posix
then . /etc/bash_completion
fi

# If this is an xterm set the title to user@host:dir
# Set the terminal title to user@host/dir
case "$TERM" in
xterm*|rxvt*|st*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}\007"'
xterm*|rxvt*|st*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}${PWD}\007"'
;;
# special escaping for Screen
screen*)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME}:${PWD}\033\\"'
screen*)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME}${PWD}\033\\"'
;;
*)
*)
;;
esac

Expand Down

0 comments on commit 2a6e6c9

Please sign in to comment.