# ~/.bashrc if [ -z "$PS1" ]; then [[ $- != *i* ]] && return fi HISTCONTROL=ignoreboth shopt -s histappend HISTSIZE=1000 HISTFILESIZE=2000 shopt -s checkwinsize [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # ---- theme ---- PS1='\[\033[0;90m\][\A $(date +%d.%m.%Y)]\n\[\033[0;33m\][\[\033[0m\]\[\033[38;5;$(if [ $EUID -eq 0 ]; then echo 196; else echo 69; fi)m\]\u\[\033[0m\]@\h \[\033[1;34m\]\w\[\033[0m\]\[\033[0;33m\]]\[\033[0m\]\[\033[1;32m\]\$:\[\033[0m\] ' # --------------- if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi 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