-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
41 lines (36 loc) · 1.09 KB
/
.bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Useful unix commands
alias ls="ls -G" # Color listing
alias ll="ls -l"
alias g="grep --color=auto -n"
alias gr="g -R"
# Screen
alias ss="screen -S ${PWD##*/}"
alias sr="screen -R ${PWD##*/}"
alias sls="screen -ls"
# Git
alias gst="git status"
alias ga="git add"
alias gl="git pull"
alias gp="git push"
alias gc="git commit"
alias gcm="git commit -m"
alias gd="git diff"
alias gdc="git diff --cached"
alias glg="git log"
alias gb="git branch"
alias gco="git checkout"
alias gf="git fetch"
alias gfp="git fetch --prune"
alias glog="git log --graph --abbrev-commit --decorate --date=format:'%F %R' --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ad)%C(reset) %C(white)%s%C(reset) - %C(dim white)%an%C(reset)%C(bold yellow)%d%C(reset)' --all"
__git_complete ga _git_add
__git_complete gl _git_pull
__git_complete gp _git_push
__git_complete gc _git_commit
__git_complete gcm _git_commit
__git_complete gd _git_diff
__git_complete gdc _git_diff
__git_complete gl _git_log
__git_complete gb _git_branch
__git_complete gco _git_checkout
__git_complete gf _git_fetch
__git_complete gfp _git_fetch