From 8d65d235929eda9a92eac19d6e663314e8f8f38c Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 7 Feb 2016 14:36:31 +1300 Subject: Initial import --- bash_profile | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 bash_profile (limited to 'bash_profile') diff --git a/bash_profile b/bash_profile new file mode 100644 index 0000000..6ccbe3a --- /dev/null +++ b/bash_profile @@ -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 -- cgit v1.1