72 lines
1.8 KiB
Bash
72 lines
1.8 KiB
Bash
# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
|
|
# don't put duplicate lines in the history. See bash(1) for more options
|
|
# don't overwrite GNU Midnight Commander's setting of `ignorespace'.
|
|
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
|
|
# ... or force ignoredups and ignorespace
|
|
export HISTCONTROL=ignoreboth
|
|
|
|
# append to the history file, don't overwrite it
|
|
shopt -s histappend
|
|
|
|
|
|
# check the window size after each command and, if necessary,
|
|
# update the values of LINES and COLUMNS.
|
|
shopt -s checkwinsize
|
|
|
|
|
|
# Note: PS1 and umask are already set in /etc/profile. You should not
|
|
# need this unless you want different defaults for root.
|
|
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
|
|
# umask 022
|
|
export PS1='\h:\w \$ '
|
|
umask 022
|
|
|
|
|
|
# You may uncomment the following lines if you want `ls' to be colorized:
|
|
export LS_OPTIONS='--color=auto'
|
|
eval "`dircolors`"
|
|
alias ls='ls $LS_OPTIONS'
|
|
alias ll='ls $LS_OPTIONS -l'
|
|
alias la='ls $LS_OPTIONS -al'
|
|
alias l='ls $LS_OPTIONS -lA'
|
|
#
|
|
# Some more alias to avoid making mistakes:
|
|
#alias rm='rm -i'
|
|
#alias cp='cp -i'
|
|
#alias mv='mv -i'
|
|
|
|
alias ..='cd ..'
|
|
alias ...='cd ../..'
|
|
alias ....='cd ../../..'
|
|
|
|
|
|
alias poweroff='echo -e "\n\tplease use: /sbin/poweroff\n"'
|
|
alias reboot='echo -e "\n\tplease use: /sbin/reboot\n"'
|
|
|
|
|
|
# Alias definitions.
|
|
# You may want to put all your additions into a separate file like
|
|
# ~/.bash_aliases, instead of adding them here directly.
|
|
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
|
|
|
if [ -f ~/.bash_aliases ]; then
|
|
. ~/.bash_aliases
|
|
fi
|
|
|
|
# enable programmable completion features (you don't need to enable
|
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
|
# sources /etc/bash.bashrc).
|
|
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
|
. /etc/bash_completion
|
|
fi
|
|
|
|
|
|
export EDITOR=vim
|
|
|
|
export LINES=64
|
|
|
|
## - set beep more quiet
|
|
## -
|
|
#xset b 10 500 50
|