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 |
gateway |
1.2 |
alias dir='ls --color=auto --format=vertical' |
15 |
|
|
alias vdir='ls --color=auto --format=long' |
16 |
gateway |
1.1 |
|
17 |
|
|
# some more ls aliases |
18 |
|
|
#alias ll='ls -l' |
19 |
|
|
#alias la='ls -A' |
20 |
|
|
#alias l='ls -CF' |
21 |
gateway |
1.2 |
#alias l='ls -alF --color=auto' |
22 |
|
|
alias l='ls -alF' |
23 |
gateway |
1.1 |
|
24 |
|
|
# set a fancy prompt |
25 |
|
|
PS1='\u@\h:\w\$ ' |
26 |
|
|
|
27 |
|
|
# If this is an xterm set the title to user@host:dir |
28 |
|
|
#case $TERM in |
29 |
|
|
#xterm*) |
30 |
|
|
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' |
31 |
|
|
# ;; |
32 |
|
|
#*) |
33 |
|
|
# ;; |
34 |
|
|
#esac |
35 |
|
|
|
36 |
|
|
# enable programmable completion features (you don't need to enable |
37 |
|
|
# this, if it's already enabled in /etc/bash.bashrc). |
38 |
|
|
#if [ -f /etc/bash_completion ]; then |
39 |
|
|
# . /etc/bash_completion |
40 |
|
|
#fi |
41 |
|
|
fi |