summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-01 18:39:33 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-01 18:39:33 +1300
commit2fdd2622eb0e5c8c78631f92bed1cf5a757b4cce (patch)
treeb4cf95cd62e6c40b5122e79287e6919dbe36fb52 /bashrc
parent42e20c48ce4a863a33b54ff55744656a6b120f0d (diff)
downloaddotfiles-2fdd2622eb0e5c8c78631f92bed1cf5a757b4cce.tar.xz
Change profile to rc
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..6ccbe3a
--- /dev/null
+++ b/bashrc
@@ -0,0 +1,60 @@
+#!/usr/bin/bash
+
+. /etc/bash_colours
+
+# Force false terminal to get colour with (eg) ls within dvtm
+if [ "$TERM" == "dvtm-256color" ]; then
+ TERM=rxvt-256color
+ # Quick fix for readline Del key in st
+ # disabled 2016-01-21
+ #echo $(tput smkx) > /dev/tty
+fi
+
+man() {
+ env LESS_TERMCAP_mb=$'\E[01;31m' \
+ LESS_TERMCAP_md=$'\E[01;38;5;74m' \
+ LESS_TERMCAP_me=$'\E[0m' \
+ LESS_TERMCAP_se=$'\E[0m' \
+ LESS_TERMCAP_so=$'\E[38;5;246m' \
+ LESS_TERMCAP_ue=$'\E[0m' \
+ LESS_TERMCAP_us=$'\E[04;38;5;146m' \
+ man "$@"
+}
+###############
+PS1="${BYellow}\
+┌[${BGreen}\u${BYellow}@${BBlue}\h${BYellow}][${BPurple}\W${BYellow}] ${BBlack}<\d \t>${BYellow}\n\
+└╼ \[${Colour_Off}\]"
+###############
+
+export GPG_TTY=$(tty)
+export EDITOR=/usr/bin/vim
+export CC=clang
+export CXX=clang
+
+alias sudo="sudo "
+alias monut=mount
+alias pamcan=pacman
+#alias scron="sudo EDITOR=nano crontab -e"
+alias ls="/bin/ls --color=auto"
+alias sl=ls
+alias grep="grep --color=auto"
+alias egrep="egrep --color=auto"
+alias xpdf="xpdf -cont"
+alias feh="feh --magick-timeout=0"
+alias xclip="xclip -selection c"
+
+echo Running $(uname) $(uname -r) on $(uname -n) \($(uname -m)\)
+
+
+if [ -f ~/todo ]; then
+ echo To do:
+ cat ~/todo
+else
+ echo To do list empty
+fi
+
+if [ -f ~/.cache/weather/forecast ]; then
+ echo ""
+ echo Weather:
+ cat ~/.cache/weather/forecast | while read -r l ; do echo " "$l ; done
+fi