# Strelok's .bashrc file # #---------------------------# #----------------------------------- # Source global definitions (if any) #----------------------------------- #if [ -f /etc/bashrc ]; then # . /etc/bashrc #fi #--------------- # Some settings #--------------- ulimit -S -c 0 unset MAILCHECK umask 022 #------------------- # Personnal Aliases #------------------- alias ls="ls -G" alias h="history" alias j="jobs -l" alias ..="cd .." alias path="echo -e ${PATH//:/\\n}" alias df="df -h" #-------------------- # Subversion Aliases #-------------------- alias commit="svn commit -m 'Очередной просто-commit...'" alias status="svn -u status" alias update="svn update" #alias mutt="muttng" #alias mutt-origin="/usr/local/bin/mutt" #-------------------- # Other Aliases #-------------------- #alias screen="screen -D -R -c ~/.screenrc" alias screenlast="screen -D -R" alias xterm="xterm -fg lightgray -bg black -bc -fn -misc-fixed-medium-*-*-*-13-*-*-*-*-80-koi8-r -geometry 159x71+0+30 -ls" alias centericq="centericq -o" ########################### # ##### COMPLETIONS ##### # ########################### complete -A setopt set complete -A user groups complete -A binding bind complete -A helptopic help complete -A alias {,un}alias complete -A signal -P '-' kill complete -A stopped -P '%' fg bg complete -A job -P '%' jobs disown complete -A variable readonly unset complete -A file -A directory ln chmod complete -A user -A hostname finger pinky complete -A directory find cd pushd {mk,rm}dir complete -A file cat pico nano vi vim view emacs complete -A file -A directory -A user chown complete -A file -A directory -A group chgrp complete -o default -W 'Makefile' -P '-o ' qmake complete -A command man which whatis sudo info apropos #-------------------- # Some functions #-------------------- ### function sscrot { echo "Starting Screen capture..."; path_and_name=~/.scrot/screen-`date +%x-%X.png`; scrot -c -d 3 -q 50 ${path_and_name}; echo "done. See ${path_and_name}"; } ### function xscrot { echo "Starting Screen capture..."; path_and_name=~/.scrot/X-`date +%x-%X.png`; import -window root ${path_and_name}; echo "done. See ${path_and_name}"; }