| 1 |
gateway |
1.1 |
# ~/.bashrc: executed by bash(1) for non-login shells. |
| 2 |
|
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) |
| 3 |
|
|
# for examples |
| 4 |
|
|
|
| 5 |
|
|
# If running interactively, then: |
| 6 |
|
|
if [ "$PS1" ]; then |
| 7 |
|
|
|
| 8 |
|
|
# don't put duplicate lines in the history. See bash(1) for more options |
| 9 |
|
|
# export HISTCONTROL=ignoredups |
| 10 |
|
|
|
| 11 |
|
|
# enable color support of ls and also add handy aliases |
| 12 |
|
|
eval `dircolors -b` |
| 13 |
|
|
alias ls='ls --color=auto' |
| 14 |
|
|
#alias dir='ls --color=auto --format=vertical' |
| 15 |
|
|
#alias vdir='ls --color=auto --format=long' |
| 16 |
|
|
|
| 17 |
|
|
# some more ls aliases |
| 18 |
|
|
#alias ll='ls -l' |
| 19 |
|
|
#alias la='ls -A' |
| 20 |
|
|
#alias l='ls -CF' |
| 21 |
|
|
|
| 22 |
|
|
# set a fancy prompt |
| 23 |
|
|
PS1='\u@\h:\w\$ ' |
| 24 |
|
|
|
| 25 |
|
|
# If this is an xterm set the title to user@host:dir |
| 26 |
|
|
#case $TERM in |
| 27 |
|
|
#xterm*) |
| 28 |
|
|
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' |
| 29 |
|
|
# ;; |
| 30 |
|
|
#*) |
| 31 |
|
|
# ;; |
| 32 |
|
|
#esac |
| 33 |
|
|
|
| 34 |
|
|
# enable programmable completion features (you don't need to enable |
| 35 |
|
|
# this, if it's already enabled in /etc/bash.bashrc). |
| 36 |
|
|
#if [ -f /etc/bash_completion ]; then |
| 37 |
|
|
# . /etc/bash_completion |
| 38 |
|
|
#fi |
| 39 |
|
|
fi |