.bashrc 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # This file is based off of data from adduser, which may contain code from
  2. # 1994-2018
  3. # (c) Ian Murdock <imurdock@debian.org>
  4. # (c) Steve Phillips<sjp@cvfn.org>
  5. # (c) the Debian Project by Ian Murdock,
  6. # (c) Ted Hajek <tedhajek@boombox.micro.umn.edu>,
  7. # (c) Sven Rudolph <sr1@inf.tu-dresden.de>.
  8. # (c) Guy Maor <maor@debian.org>.
  9. # (c) Roland Bauerschmidt <rb@debian.org>.
  10. # (c) Marc Haber <mh+debian-packages@zugschlus.de>
  11. # (c) 2005 Joerg Hoh <joerg@joerghoh.de>
  12. # (c) 2006 Stephen Gran <sgran@debian.org>
  13. # (C) 1994 Debian Association, Inc.
  14. # (c) John Zaitseff
  15. # It is licensed under the GNU General Public License version 3. You should have
  16. #recieved a version of the GPL version 3 with this file (see COPYING.GPL),
  17. # if not see the FSF's website: https://www.gnu.org/licenses/gpl-3.0.en.html
  18. HOME=/home/themusicgod1
  19. DEBEMAIL=jeffrey.cliff@gmail.com
  20. DEBFULLNAME="Jeff Cliff"
  21. ## mc related
  22. # apt-get install mc to get mc
  23. export HISTCONTROL=ignoreboth
  24. . /usr/lib/mc/mc.sh
  25. alias time=/usr/bin/time
  26. # CVE-2014-8485 - ridiculous, but necessary
  27. alias strings='strings -a '
  28. # ~/.bashrc: executed by bash(1) for non-login shells.
  29. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  30. # for examples
  31. # fortune|cowsay
  32. # If not running interactively, don't do anything
  33. case $- in
  34. *i*) ;;
  35. *) return;;
  36. esac
  37. # don't put duplicate lines or lines starting with space in the history.
  38. # See bash(1) for more options
  39. HISTCONTROL=ignoreboth
  40. # append to the history file, don't overwrite it
  41. shopt -s histappend
  42. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  43. HISTSIZE=1000
  44. HISTFILESIZE=2000
  45. # check the window size after each command and, if necessary,
  46. # update the values of LINES and COLUMNS.
  47. shopt -s checkwinsize
  48. # If set, the pattern "**" used in a pathname expansion context will
  49. # match all files and zero or more directories and subdirectories.
  50. #shopt -s globstar
  51. # make less more friendly for non-text input files, see lesspipe(1)
  52. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  53. # set variable identifying the chroot you work in (used in the prompt below)
  54. if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
  55. debian_chroot=$(cat /etc/debian_chroot)
  56. fi
  57. # set a fancy prompt (non-color, unless we know we "want" color)
  58. case "$TERM" in
  59. xterm-color) color_prompt=yes;;
  60. esac
  61. # uncomment for a colored prompt, if the terminal has the capability; turned
  62. # off by default to not distract the user: the focus in a terminal window
  63. # should be on the output of commands, not on the prompt
  64. #force_color_prompt=yes
  65. if [ -n "$force_color_prompt" ]; then
  66. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  67. # We have color support; assume it's compliant with Ecma-48
  68. # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  69. # a case would tend to support setf rather than setaf.)
  70. color_prompt=yes
  71. else
  72. color_prompt=
  73. fi
  74. fi
  75. if [ "$color_prompt" = yes ]; then
  76. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  77. else
  78. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  79. fi
  80. unset color_prompt force_color_prompt
  81. # If this is an xterm set the title to user@host:dir
  82. case "$TERM" in
  83. xterm*|rxvt*)
  84. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  85. ;;
  86. *)
  87. ;;
  88. esac
  89. # enable color support of ls and also add handy aliases
  90. if [ -x /usr/bin/dircolors ]; then
  91. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  92. alias ls='ls --color=auto'
  93. alias grep='grep --color=auto'
  94. alias fgrep='fgrep --color=auto'
  95. alias egrep='egrep --color=auto'
  96. fi
  97. # some more aliases
  98. alias pls='sudo'
  99. alias x='exit'
  100. alias l='ls'
  101. alias c='cd'
  102. alias cdp='cd ..'
  103. alias dfh='df -h'
  104. alias a='./a.out'
  105. alias b='bg'
  106. alias d='df'
  107. alias f='fg'
  108. alias p='ps ax -H'
  109. alias irc='irssi'
  110. alias cdpub='cd public_html'
  111. alias ll='ls -alF'
  112. alias la='ls -A'
  113. alias lf='ls -CF'
  114. alias unsafe-browser='chromium-browser'
  115. alias man='man -s 2,9,8,1,4,5,6,7,3 '
  116. alias push='git push'
  117. #this is the fastest shaw/eva's shitty network can handle
  118. alias scp='scp -l 49972'
  119. # Add an "alert" alias for long running commands. Use like so:
  120. # sleep 10; alert
  121. alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  122. # Alias definitions.
  123. # You may want to put all your additions into a separate file like
  124. # ~/.bash_aliases, instead of adding them here directly.
  125. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  126. if [ -f ~/.bash_aliases ]; then
  127. . ~/.bash_aliases
  128. fi
  129. # enable programmable completion features (you don't need to enable
  130. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  131. # sources /etc/bash.bashrc).
  132. if ! shopt -oq posix; then
  133. if [ -f /usr/share/bash-completion/bash_completion ]; then
  134. . /usr/share/bash-completion/bash_completion
  135. elif [ -f /etc/bash_completion ]; then
  136. . /etc/bash_completion
  137. fi
  138. fi
  139. #CUSTOM
  140. PATH=$PATH:~/tools:/usr/games
  141. # alias PM='trickle -d 69 -u 138 ~/palemooon/Pale-Moon-27.3.0_Release/obj-x86_64-unknown-linux-gnu/dist/bin/palemoon'
  142. alias PM='~/palemooon/Pale-Moon-27.3.0_Release/obj-x86_64-unknown-linux-gnu/dist/bin/palemoon'
  143. ulimit -c unlimited >/dev/null 2>&1
  144. export QUILT_PATCHES=debian/patches
  145. export QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"
  146. # no master eh
  147. git config --global init.defaultBranch nigger