46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
#
|
|
# ~/.bashrc
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
|
|
|
# Change the window title of X terminals
|
|
case ${TERM} in
|
|
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
|
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
|
;;
|
|
screen*)
|
|
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
|
;;
|
|
esac
|
|
|
|
alias ls='ls --color=auto'
|
|
alias la='ls -a'
|
|
alias ll='ls -la'
|
|
alias l='ls'
|
|
alias l.="ls -A | egrep '^\.'"
|
|
alias grep='grep --colour=auto'
|
|
alias egrep='egrep --colour=auto'
|
|
alias fgrep='fgrep --colour=auto'
|
|
alias df='df -h' # human-readable sizes
|
|
alias free='free -m' # show sizes in MB
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
# Bash won't get SIGWINCH if another process is in the foreground.
|
|
# Enable checkwinsize so that bash will check the terminal size when
|
|
# it regains control. #65623
|
|
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
|
|
shopt -s checkwinsize
|
|
|
|
shopt -s expand_aliases
|
|
|
|
# export QT_SELECT=4
|
|
|
|
# Enable history appending instead of overwriting. #139609
|
|
shopt -s histappend
|
|
|
|
#neofetch
|