Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Anonymous
Saturday, January 27th, 2007 at 9:43:43pm UTC 

  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  3. # for examples
  4.  
  5. # If not running interactively, don't do anything
  6. [ -z "$PS1" ] && return
  7.  
  8. # don't put duplicate lines in the history. See bash(1) for more options
  9. export HISTCONTROL=ignoredups
  10.  
  11. # check the window size after each command and, if necessary,
  12. # update the values of LINES and COLUMNS.
  13. shopt -s checkwinsize
  14.  
  15. # make less more friendly for non-text input files, see lesspipe(1)
  16. [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
  17.  
  18. # set variable identifying the chroot you work in (used in the prompt below)
  19. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  20.     debian_chroot=$(cat /etc/debian_chroot)
  21. fi
  22.  
  23. # set a fancy prompt (non-color, unless we know we "want" color)
  24. case "$TERM" in
  25. xterm-color)
  26.   #  PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  27. #PS1='[\[email protected]\w]$ '
  28.     ;;
  29. *)
  30.     PS1='${debian_chroot:+($debian_chroot)}\[email protected]\h:\w\$ '
  31.     ;;
  32. esac
  33.  
  34. # Comment in the above and uncomment this below for a color prompt
  35. #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  36.  
  37. # If this is an xterm set the title to [email protected]:dir
  38. case "$TERM" in
  39. xterm*|rxvt*)
  40.     PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
  41.     ;;
  42. *)
  43.     ;;
  44. esac
  45.  
  46. # Alias definitions.
  47. # You may want to put all your additions into a separate file like
  48. # ~/.bash_aliases, instead of adding them here directly.
  49. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  50.  
  51. #if [ -f ~/.bash_aliases ]; then
  52. #    . ~/.bash_aliases
  53. #fi
  54.  
  55. # enable color support of ls and also add handy aliases
  56. if [ "$TERM" != "dumb" ]; then
  57.     eval "`dircolors -b`"
  58.     alias ls='ls --color=auto'
  59.     #alias dir='ls --color=auto --format=vertical'
  60.     #alias vdir='ls --color=auto --format=long'
  61. fi
  62.  
  63. # some more ls aliases
  64. #alias ll='ls -l'
  65. #alias la='ls -A'
  66. #alias l='ls -CF'
  67.  
  68. alias apt='sudo apt-get install'
  69. alias build-dep='sudo apt-get build-dep'
  70. alias clean='sudo apt-get autoclean'
  71. alias cp='cp -i'
  72. alias del='rm -r'
  73. alias df='df -tH'
  74. alias dist-upgrade='sudo apt-get dist-upgrade'
  75. alias edit=mousepad
  76. alias fwreset='sudo iptables restore < /var/lib/iptables/iptables.cfg'
  77. alias fwrules='sudo iptables -L'
  78. alias free='free -m'
  79. alias home='cd ~'
  80. alias i='sudo dpkg -i
  81. alias ifdown0='sudo ifdown eth0'
  82. alias ifdownup0='sudo ifdown eth0; sudo ifup eth0'
  83. alias ifup0='sudo ifup eth0'
  84. alias kill=’pkill’
  85. alias ls=’ls –color=auto’
  86. alias lsl='ls -l'
  87. alias lsa='ls -a'
  88. alias lsla='ls -la'
  89. #alias menu=’edit .config/xfce4/desktop/menu.xml’
  90. alias mkbz2=’tar -cvjf’
  91. alias mkgz=’tar -cvzf’
  92. alias mktar=’tar -cvf’
  93. alias mv=’mv -i’
  94. alias remove=’sudo apt-get remove’
  95. alias rm='rm -i’
  96. alias search=’apt-cache search’
  97. alias sources.list=’sudo leafpad /etc/apt/sources.list’
  98. alias suedit=’sudo mousepad’
  99. alias update=’sudo apt-get update’
  100. alias upgrade=’sudo apt-get upgrade’
  101. alias unbz2=’tar -xvjf’
  102. alias ungz=’tar -xvzf’
  103. alias untar=’tar -xvf’
  104. alias xorg.conf=’sudo leafpad /etc/X11/xorg.conf’
  105.  
  106. # enable programmable completion features (you don't need to enable
  107. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  108. # sources /etc/bash.bashrc).
  109. if [ -f /etc/bash_completion ]; then
  110.     . /etc/bash_completion
  111. fi

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right