summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc60
1 files changed, 60 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..3318cd5
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,60 @@
+# /etc/skel/.bashrc
+#
+# This file is sourced by all *interactive* bash shells on startup,
+# including some apparently interactive shells such as scp and rcp
+# that can't tolerate any output. So make sure this doesn't display
+# anything or bad things will happen !
+
+
+# Test for an interactive shell. There is no need to set anything
+# past this point for scp and rcp, and it's important to refrain from
+# outputting anything in those cases.
+if [[ $- != *i* ]] ; then
+ # Shell is non-interactive. Be done now!
+ return
+fi
+
+export LC_ALL=en_US.UTF-8
+alias clr="echo -ne '\033c'"
+alias mv="mv -i"
+alias cp="cp -i"
+alias btd="bittorrent-curses --max_upload_rate 6 "
+export history_control=ignoreboth
+export command_oriented_history
+export HISTIGNORE='&:[bf]g:exit:ls'
+shopt -s extglob
+shopt -s cmdhist
+shopt -s histappend
+shopt -s no_empty_cmd_completion
+
+[ -f /etc/profile.d/xprint.sh ] && source /etc/profile.d/xprint.sh
+
+function xtitle() {
+ case $TERM in
+ xterm*|rxvt|Eterm|eterm)
+ echo -ne "\e]0;$1\007"
+ ;;
+ screen)
+ echo -ne "\e_$1\e\\"
+ ;;
+ esac
+}
+
+function xreset() {
+ case $TERM in
+ xterm*|rxvt|Eterm|eterm)
+ echo -ne '\ec'
+ ;;
+ esac
+}
+
+. ~/src/git-prompt/git-prompt.sh
+
+#export PS1="\
+#\[\033[1;37m\]\u@\h\
+#\[\033[0;37m\]:\w\n\
+#\[\033[1;34m\](\$?)\
+#\[\033[0;33m\][\j]\
+#\[\033[0;34m\]\$\
+#\[\033[0m\] "
+