From 01464bd2fbebd5820ed6890b05df2be29a4f560b Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Thu, 27 Feb 2014 21:17:58 +0100 Subject: [PATCH] added bashrc --- .bashrc | 36 ++++++++++++++++++++++++++++++++++++ install | 1 + 2 files changed, 37 insertions(+) create mode 100644 .bashrc mode change 100644 => 100755 install diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..ac77da5 --- /dev/null +++ b/.bashrc @@ -0,0 +1,36 @@ +STCONTROL=ignoreboth +HISTSIZE=100000 +HISTFILESIZE=10000 +shopt -s checkwinsize +shopt -s histappend +. /etc/bash_completion + +#Variables +export BROWSER=lynx +export EDITOR=vim +export TERMINAL=urxvt +export TERM=screen +export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin +export COLORFGBG="default:default" + +#Colors yeeeyyyy +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias email='offlineimap -c ~/.mutt/offlineimaprc -u ttyui; mutt; offlineimap -c ~/.mutt/offlineimaprc &' + +#Watch youtube videos in the terminal +function ytview { + if [ "$#" -ne "1" ]; then + echo "usage $0 yturl" + else + get_flash_videos -q -f - $1 | cvlc -A alsa -V aa - + fi +} + +#Mount cloud file storage and start daemon if necessary +if ! mountpoint -q ~/copy; then + encfs ~/.copy.encr ~/copy +fi +if ! pidof CopyConsole >> /dev/null; then + ~/bin/copy/x86_64/CopyConsole -daemon 2>&1 1>/dev/null +fi diff --git a/install b/install old mode 100644 new mode 100755 index 3198c1d..38b78f1 --- a/install +++ b/install @@ -1,2 +1,3 @@ #!/bin/bash ln -is `pwd`/.vimrc ~/.vimrc +ln -is `pwd`/.bashrc ~/.bashrc -- 2.20.1