-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc_aliases
74 lines (58 loc) · 1.48 KB
/
.bashrc_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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
source ~/.bashrc_functions
# alias a unalias at the end of this file
alias a="alias"
# some more ls aliases
alias ll='ls -lh '
alias la='ls -Alh '
alias l='ls -CFlh '
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto '
alias dir='dir --color=auto '
alias vdir='vdir --color=auto '
alias grep='grep --color=auto '
alias rgrep='rgrep --color=auto '
alias fgrep='fgrep --color=auto '
alias egrep='egrep --color=auto '
a diff="diff --color=auto "
fi
a v="vim"
#
# GIT
#
a g="git "
a ga="git add"
a gst="git stash "
a gstp="git stash pop"
a gsb="git status -sb "
a gb="git branch "
a gc="git commit "
a gca="git commit --amend "
a gco="git checkout "
a gcm="git checkout master"
a gcd="git checkout develop"
a gg="git grep -i --color=auto "
a gl="git log "
#make-completion-wrapper _apt_get _apt_get_install apt-get install
#complete -F _apt_get_install agi
# PYTHON
a py="ipython "
a pysetup="python setup.py build && python setup.py install"
#
# APT-GET
#
a agu="sudo apt-get update && sudo apt-get upgrade"
a agdu="sudo apt-get update && sudo apt-get dist-upgrade"
a agi="sudo apt-get install"
a agr="sudo apt-get remove"
a agar="sudo apt-get autoremove"
#
# DOCKER
#
a dc="docker"
a dcc="docker-compose"
# Mingw32
a gcc-win-32='i686-w64-mingw32-gcc'
a gcc-win-64='x86_64-w64-mingw32-gcc-4.9-win32'
unalias a