Browse Source

new bashrc, aliases

Oliver Ladner 6 years ago
parent
commit
e2fa2397f0
3 changed files with 41 additions and 0 deletions
  1. 20 0
      .bash_aliases
  2. 13 0
      .bashrc_append_this
  3. 8 0
      .bashrc_local

+ 20 - 0
.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'

+ 13 - 0
.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

+ 8 - 0
.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