new bashrc, aliases
This commit is contained in:
parent
1e72e3e353
commit
e2fa2397f0
3 changed files with 41 additions and 0 deletions
20
.bash_aliases
Normal file
20
.bash_aliases
Normal file
|
|
@ -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
.bashrc_append_this
Normal file
13
.bashrc_append_this
Normal file
|
|
@ -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
.bashrc_local
Normal file
8
.bashrc_local
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue