1 # System-wide .bashrc file for interactive bash(1) shells.
3 # To enable the settings / commands in this file for login shells as well,
4 # this file has to be sourced in /etc/profile.
6 # If not running interactively, don't do anything
7 [ -z "$PS1" ] && return
9 # check the window size after each command and, if necessary,
10 # update the values of LINES and COLUMNS.
13 # set variable identifying the chroot you work in (used in the prompt below)
14 if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
15 debian_chroot=$(cat /etc/debian_chroot)
18 # set a fancy prompt (non-color, overwrite the one in /etc/profile)
19 #PS1='\[\e[0;32m\]\u@\h:\w\$\[\e[1;37m\] '
20 PS1='\[\e[0;36m\]\w\$\[\e[0;37m\] '
21 #export PROMPT_COMMAND='cwd=${PWD%/}; thisdir="$(echo $cwd | sed '\''s/.*\///'\'')"; dirparts="${cwd:0:$((${#cwd} - ${#thisdir}))}"; dirparts="$(echo ${dirparts%/} | sed '\''s/\//\\[\\e[0;33m\\]\/\\[\\e[32m\\]/g'\'')"; rc=${PWD%/}; rc=${rc:0:1}; PS1="\[\e]0;${cwd}/\007\e[1;36m\][\[\e[0;36m\]$(date "+%I:%M:%S %p")\[\e[1m\]] ${dirparts}\[\e[0;33m\]${rc}\[\e[1;34m\]${thisdir}\[\e[0;33m\]/\[\e[1;33m\] %\[\e[0m\] "'
22 # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
23 # If this is an xterm set the title to user@host:dir
26 # PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
32 # enable bash completion in interactive shells
33 if [ -f /etc/bash_completion ]; then
34 . /etc/bash_completion
38 if [ ! -e $HOME/.sudo_as_admin_successful ]; then
39 case " $(groups) " in *\ admin\ *)
40 if [ -x /usr/bin/sudo ]; then
42 To run a command as administrator (user "root"), use "sudo <command>".
43 See "man sudo_root" for details.
50 # if the command-not-found package is installed, use it
51 if [ -x /usr/lib/command-not-found ]; then
52 function command_not_found_handle {
53 # check because c-n-f could've been removed in the meantime
54 if [ -x /usr/lib/command-not-found ]; then
55 /usr/bin/python /usr/lib/command-not-found -- $1
63 export TERM=xterm-256color
66 alias editt="sudo vi /usr/share/themes/openbox_cinan/openbox-3/themerc"
67 #alias pal="xterm -hold -bg black -fg white -geometry 37x12 -e pal"
68 alias pacman="pacman-color"
70 alias grep="grep --colour"
71 alias rubysearch="ruby ~/skripty/search_interface.rb"
72 alias vi="vim -u ~/.vimrc"
74 alias rtorrent="rtorrent -o http_capath=/etc/ssl/certs"
75 alias smplayer="smplayer 2>/dev/null"