forked from NIA/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_aliases
65 lines (57 loc) · 1.63 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
eval "`dircolors -b`"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -lh'
alias la='ls -A'
alias lla='ls -lah'
# for commands with sudo autocomplition
alias sudo='sudo '
# my aliases
# apt aliases
alias aptgi='sudo apt-get install'
alias aptud='sudo apt-get update'
alias aptg='sudo apt-get upgrade'
alias aptdg='sudo apt-get dist-upgrade'
alias aptr='sudo apt-get autoremove'
alias aptc='sudo apt-get autoclean'
alias apti='sudo apt install'
alias aptd='sudo apt update'
alias aptfu='sudo apt full-upgrade'
alias aptar='sudo apt autoremove'
alias aptac='sudo apt autoclean'
# # yum aliases
# alias yumi='sudo yum install'
# alias yumu='sudo yum update'
# alias yumug='sudo yum upgrade'
# alias yumcu='sudo yum check-update'
# alias yumca='sudo yum clean all'
# alias yumcc='sudo yum clean cache'
# ack-grep
alias ack='ack-grep'
# git
alias gush='git push'
alias gull='git pull'
alias ggui='git gui&'
alias gco='git checkout'
alias gst='git status'
alias gitka='gitk --all&'
alias gdi='git diff --color'
alias glo='git log --color'
alias gfe='git fetch'
# ledger
alias leed='gvim $LEDGER_FILE'
# other
alias o='xdg-open'
alias wget='wget --no-check-certificate' # workaround wget bug, see https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere#comment-9002
# apts with filtering
apts() {
apt-cache search $* | ack "$(echo $*|sed 's/\s\+/|/g')"
}