-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
3,435 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.