From: Mart Lubbers Date: Thu, 27 Feb 2014 20:17:58 +0000 (+0100) Subject: added bashrc X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=01464bd2fbebd5820ed6890b05df2be29a4f560b;p=dotfiles.git added bashrc --- 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