]>
Commit | Line | Data |
---|---|---|
71e32384 MT |
1 | # Begin /etc/bashrc |
2 | # Written for Beyond Linux From Scratch | |
3 | # by James Robertson <jameswrobertson@earthlink.net> | |
4 | # updated by Bruce Dubbs <bdubbs@linuxfromscratch.org> | |
5 | ||
6 | # Make sure that the terminal is set up properly for each shell | |
7 | ||
8 | if [ -f /etc/profile.d/tinker-term.sh ]; then | |
9 | source /etc/profile.d/tinker-term.sh | |
10 | fi | |
11 | ||
12 | # System wide aliases and functions. | |
13 | ||
14 | # System wide environment variables and startup programs should go into | |
15 | # /etc/profile. Personal environment variables and startup programs | |
16 | # should go into ~/.bash_profile. Personal aliases and functions should | |
17 | # go into ~/.bashrc | |
18 | ||
19 | # Provides a colored /bin/ls command. Used in conjunction with code in | |
20 | # /etc/profile. | |
21 | ||
22 | alias ls='ls --color=auto' | |
203c2787 MT |
23 | alias ll='ls -la' |
24 | alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' | |
25 | ||
26 | # Make the shell a little bit more interactive | |
27 | # to prevent the deletion of some files | |
28 | alias mv='mv -i' | |
29 | alias rm='rm -i' | |
30 | alias cp='cp -i' | |
71e32384 | 31 | |
a08c3a2e MT |
32 | # Midnight Commander isn't compatible to UTF8. |
33 | # So we use it in ACSII-Mode. | |
34 | ||
35 | alias mc='mc -a' | |
36 | ||
71e32384 MT |
37 | # Provides prompt for non-login shells, specifically shells started |
38 | # in the X environment. [Review the LFS archive thread titled | |
39 | # PS1 Environment Variable for a great case study behind this script | |
40 | # addendum.] | |
41 | ||
323c9327 MT |
42 | #export PS1="\033[0m[\033[1;33m\u\033[1;37m@\033[1;32m\]\h \033[1;31m\w\033[0m]\\$ " |
43 | export PS1="[\u@\h \w]\\$ " | |
6fb8ec08 | 44 | #export PS1='\u@\h:\w\$ ' |
71e32384 MT |
45 | |
46 | # End /etc/bashrc |