Skip to content

Commit

Permalink
[#2] Add: settings docker bash
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Dec 13, 2016
1 parent 3cef42f commit 6cf4318
Show file tree
Hide file tree
Showing 5 changed files with 3,435 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docker/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

alias ls='ls -hFG'
alias l='ls -lF'
alias ll='ls -alF'
alias lt='ls -ltrF'
alias ll='ls -alF'
alias lls='ls -alSrF'
alias llt='ls -altrF'

alias tarc='tar cvf'
alias tarcz='tar czvf'
alias tarx='tar xvf'
alias tarxz='tar xvzf'

alias g='git'
alias less='less -R'
alias os='lsb_release -a'
alias vi='vim'

# Colorize directory listing
alias ls="ls -ph --color=auto"

# Colorize grep
if echo hello|grep --color=auto l >/dev/null 2>&1; then
export GREP_OPTIONS="--color=auto" GREP_COLOR="1;31"
fi

# Shell
export CLICOLOR="1"
if [ -f $HOME/.scripts/git-prompt.sh ]; then
source $HOME/.scripts/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE="1"
export PS1="\[\033[40m\]\[\033[34m\][ \u@\H:\[\033[36m\]\w\$(__git_ps1 \" \[\033[35m\]{\[\033[32m\]%s\[\033[35m\]}\")\[\033[34m\] ]$\[\033[0m\] "
else
export PS1="\[\033[40m\]\[\033[34m\][ \u@\H:\[\033[36m\]\w\[\033[34m\] ]$\[\033[0m\] "
fi
export LS_COLORS="di=34:ln=35:so=32:pi=33:ex=1;40:bd=34;40:cd=34;40:su=0;40:sg=0;40:tw=0;40:ow=0;40:"

# Git
source $HOME/.scripts/git-completion.sh

# Z
source $HOME/.scripts/z.sh
39 changes: 39 additions & 0 deletions docker/.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[user]
name =
email =

[alias]
a = add
b = branch
c = commit
co = checkout
d = diff
e = add --edit
f = fetch
g = grep
h = help
i = init
l = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
ll = log --stat
m = merge
r = remote
s = status --branch --short
t = tag
w = whatchanged

[core]
excludesfile = ~/.gitignore
editor = vim

[color]
ui = always
status = auto
branch = auto
interactive = auto
diff = auto

[merge]
tool = vimdiff

[push]
default = upstream
Loading

0 comments on commit 6cf4318

Please sign in to comment.