From e2fa2397f07c517cc3e647d39387a42b46307408 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Tue, 21 Jan 2014 21:22:32 +0100 Subject: [PATCH] new bashrc, aliases --- .bash_aliases | 20 ++++++++++++++++++++ .bashrc_append_this | 13 +++++++++++++ .bashrc_local | 8 ++++++++ 3 files changed, 41 insertions(+) create mode 100644 .bash_aliases create mode 100644 .bashrc_append_this create mode 100644 .bashrc_local diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..6e23030 --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,20 @@ +alias grep='grep --color' +alias l='ls -lhatr' +alias ls='ls --color=auto' + +# Git stuff +alias gdp='git diff --color HEAD^ HEAD' +alias gl='git log --pretty=format:"%Cgreen%h %Creset %s %Cgreenby %an (%ar) %Cred %d" --graph' +alias gdc='git diff --color' + +# export standard terminal for remote connections +#alias ssh='export TERM=xterm && ssh' + +alias cal='ncal -b -M' + +alias hexdump='hexdump -c' + +alias pwgen='pwgen -B -s' + +# open multiple files in tabs +alias vim='vim -p' diff --git a/.bashrc_append_this b/.bashrc_append_this new file mode 100644 index 0000000..a0a82a7 --- /dev/null +++ b/.bashrc_append_this @@ -0,0 +1,13 @@ +####################################### +# APPEND this to your .bashrc +####################################### + +# Source local .bashrc customization from this file +if [ -f ~/.bashrc_local ]; then + . ~/.bashrc_local +fi + +# Source local aliases from this file +if [ -f ~/.bash_aliases ]; then + . ~/.bash_aliases +fi diff --git a/.bashrc_local b/.bashrc_local new file mode 100644 index 0000000..835c9c7 --- /dev/null +++ b/.bashrc_local @@ -0,0 +1,8 @@ +# remember more commands +HISTSIZE=20000 + +# add timestamps to history entries +HISTTIMEFORMAT="%d.%m.%Y %H:%M %Z # " + +# 256-color terminal if available +export TERM=xterm-256color