-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases
52 lines (44 loc) · 1.25 KB
/
.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
# -*- mode: sh -*-
alias ls='exa'
alias ee='exa -alF'
alias ll='exa -alF'
alias ea='exa -a'
alias la='exa -a'
alias mv='mv -i' # ask before overwriting existing files
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias e='emacsclient -a vim'
alias vi='emacsclient -t -a vim'
alias vim='emacsclient -t -a vim'
# https://github.com/sharkdp/fd is installed as fdfind in Debian/Ubuntu
if [ -x "$(which fdfind 2>/dev/null)" ]; then
alias fd='fdfind'
fi
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# URL-encode and decode strings
alias urldecode='python -c "import sys; from urllib.parse import quote; print(quote(sys.argv[1]));"'
alias urldecode='python -c "import sys; from urllib.parse import unquote; print(unquote(sys.argv[1]));"'
#######
# git #
#######
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias glp='git log -p'
alias gs='git status -sb'
alias gd='git diff'
alias gc='git commit'
alias gca='git commit --amend'
alias gcm='git commit -m'
alias gcma='git commit -ma'
alias gb='git branch'
alias gco='git checkout'
alias gra='git remote add'
alias gri='git rebase --interactive'
alias grr='git remote rm'
alias gpu='git pull'
alias gcl='git clone'