Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ~/.bashrc: executed by bash(1) for non-login shells.
- # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
- # for examples
- EDITOR=nano
- export EDITOR
- # If not running interactively, don't do anything
- case $- in
- *i*) ;;
- *) return;;
- esac
- # don't put duplicate lines or lines starting with space in the history.
- # See bash(1) for more options
- HISTCONTROL=ignoreboth
- # append to the history file, don't overwrite it
- shopt -s histappend
- # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
- HISTSIZE=10000
- HISTFILESIZE=${HISTSIZE}
- # check the window size after each command and, if necessary,
- # update the values of LINES and COLUMNS.
- shopt -s checkwinsize
- # If set, the pattern "**" used in a pathname expansion context will
- # match all files and zero or more directories and subdirectories.
- #shopt -s globstar
- # make less more friendly for non-text input files, see lesspipe(1)
- [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
- # set variable identifying the chroot you work in (used in the prompt below)
- if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
- debian_chroot=$(cat /etc/debian_chroot)
- fi
- # If this is an xterm set the title to user@host:dir
- case "$TERM" in
- xterm*|rxvt*)
- PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h \w\a\]$PS1"
- ;;
- *)
- ;;
- esac
- # enable color support of ls and also add handy aliases
- if [ -x /usr/bin/dircolors ]; then
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
- fi
- # color man pages
- function man() {
- env LESS_TERMCAP_mb=$'\E[01;31m' \
- LESS_TERMCAP_md=$'\E[01;38;5;74m' \
- LESS_TERMCAP_me=$'\E[0m' \
- LESS_TERMCAP_se=$'\E[0m' \
- LESS_TERMCAP_so=$'\E[38;5;246m' \
- LESS_TERMCAP_ue=$'\E[0m' \
- LESS_TERMCAP_us=$'\E[04;38;5;146m' \
- man "$@"
- }
- # prompt
- # PS1='[\W]\$ '
- # PS1='[\u@\h \W]\$ '
- # PS1="\[\e[0;1m\]┌─[ \[\e[32;1m\]\u\[\e[0;1m\] ]──[ \[\e[32;1m\]\w\[\e[0;1m\] ]\n└──> \[\e[0m\]"
- # PS1='\[\e[40m\]\[\e[1;37m\] \u \[\e[47m\]\[\e[1;30m\] \w \[\e[0m\]\[\e[1;30m\]\[\e[42m\] > \[\e[0m\] ' #regular user
- # PS1='\[\e[41m\]\[\e[1;37m\] \u \[\e[47m\]\[\e[1;30m\] \w \[\e[0m\]\[\e[1;30m\]\[\e[42m\] > \[\e[0m\] ' #root user
- # PS1='\[\e[1;30m\][\[\e[0;33m\]\u@\H\[\e[1;30m\]]─╸\[\e[1;30m\][\[\e[37m\]\W\[\e[1;30m\]]\[\e[1;34m\]\[\e[0m\]\[\e[m \] '
- PS1="\[\e[1;30m\]┌─[ \[\e[32;1m\]\w\[\e[1;30m\] ]\n\e[1;30m\]└──╸ \[\e[0m\]"
- # some usefull aliases
- alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
- alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
- alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
- alias grep='grep --color=tty -d skip'
- alias cp="cp -i" # confirm before overwriting something
- alias df='df -h' # human-readable sizes
- alias free='free -m' # show sizes in MB
- # 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 ~/.arch_aliases ]; then
- . ~/.arch_aliases
- fi
- if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$PATH"
- 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 ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment