summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-02-07 14:36:31 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-02-07 14:36:34 +1300
commit8d65d235929eda9a92eac19d6e663314e8f8f38c (patch)
treea92239c4b0585d1baf093a9498ddb4f0ad6fc67c
downloaddotfiles-8d65d235929eda9a92eac19d6e663314e8f8f38c.tar.xz
Initial import
-rw-r--r--bash_profile60
-rw-r--r--nanorc33
-rwxr-xr-xsetup10
-rw-r--r--vimrc5
4 files changed, 108 insertions, 0 deletions
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
diff --git a/nanorc b/nanorc
new file mode 100644
index 0000000..d9901ba
--- /dev/null
+++ b/nanorc
@@ -0,0 +1,33 @@
+
+# Screw wrapping!
+set nowrap
+set nohelp
+set tabsize 4
+set autoindent
+
+include "/usr/share/nano/nanorc.nanorc"
+include "/usr/share/nano/c.nanorc"
+include "/usr/share/nano/makefile.nanorc"
+include "/usr/share/nano/css.nanorc"
+include "/usr/share/nano/debian.nanorc"
+include "/usr/share/nano/gentoo.nanorc"
+include "/usr/share/nano/html.nanorc"
+include "/usr/share/nano/php.nanorc"
+include "/usr/share/nano/tcl.nanorc"
+include "/usr/share/nano/tex.nanorc"
+include "/usr/share/nano/mutt.nanorc"
+include "/usr/share/nano/patch.nanorc"
+include "/usr/share/nano/man.nanorc"
+include "/usr/share/nano/groff.nanorc"
+include "/usr/share/nano/perl.nanorc"
+include "/usr/share/nano/python.nanorc"
+include "/usr/share/nano/ruby.nanorc"
+include "/usr/share/nano/java.nanorc"
+include "/usr/share/nano/fortran.nanorc"
+include "/usr/share/nano/objc.nanorc"
+include "/usr/share/nano/ocaml.nanorc"
+include "/usr/share/nano/awk.nanorc"
+include "/usr/share/nano/asm.nanorc"
+include "/usr/share/nano/sh.nanorc"
+include "/usr/share/nano/pov.nanorc"
+include "/usr/share/nano/xml.nanorc"
diff --git a/setup b/setup
new file mode 100755
index 0000000..bb8d4eb
--- /dev/null
+++ b/setup
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+for i in $(ls -1 | grep -v $(basename $0)) ; do
+ ln -s ${PWD/$HOME\//}/$i $HOME/.$i
+done
+
+# extra symlinks
+pushd $HOME
+ln -s .bash_profile .bashrc
+popd
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..5cb89a7
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,5 @@
+syntax on
+set cc=80
+
+set autoindent
+set tabstop=4