From 2fdd2622eb0e5c8c78631f92bed1cf5a757b4cce Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 1 Mar 2016 18:39:33 +1300 Subject: Change profile to rc --- bashrc | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 bashrc (limited to 'bashrc') 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 -- cgit v1.1