diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-12-01 23:59:31 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-12-01 23:59:31 +0100 |
commit | b3eaf4d3e1e3031054fadbc47eb749f47f901e83 (patch) | |
tree | bb595da73ea856a77e15420b43d3b43c003963dd /.bashrc | |
download | dotfiles-b3eaf4d3e1e3031054fadbc47eb749f47f901e83.tar.gz dotfiles-b3eaf4d3e1e3031054fadbc47eb749f47f901e83.tar.bz2 dotfiles-b3eaf4d3e1e3031054fadbc47eb749f47f901e83.zip |
Initial commit
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +# +# ~/.bashrc +# + +export GOPATH="$HOME/go" +export PATH=$HOME/bin:$GOPATH/bin:$PATH +export TEXMFHOME="$HOME/texmf" +export EDITOR="nano" +export BLOGROOT="$HOME/blog" +export PLAN9=/opt/plan9 + +export BAR_FIFO=$HOME/mybar/fifo +export REDSHIFT_FIFO=$HOME/.redshift_fifo + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# Aliases +alias ls='ls --color=auto' +alias xo='exo-open' +alias la='ls -lah --color=auto' +alias cb='xclip -i -selection clipboard' + +PS1="[ \[\e[1m\]\W\[\e[0m\] ]$ " + +mkcd() { + mkdir "$1" + cd "$1" +} + +unlatin1() { + mv "$1" /tmp/unlatin1.data + iconv --from=latin1 --to=utf8 /tmp/unlatin1.data > "$1" + rm -f /tmp/unlatin1.data +} + +relatin1() { + cp "$1" /tmp/relatin1.data + iconv --from=utf8 --to=latin1 /tmp/relatin1.data > "$1" + rm /tmp/relatin1.data +} |