-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaliases
101 lines (82 loc) · 2.81 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# vim:ft=sh
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ] || [ -x /bin/dircolors ]; then
eval "`dircolors -b`"
alias ls='ls -F --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# alias e="emacsclient"
alias e="exa -l --group-directories-first"
alias g='git'
alias h='git hist'
alias t='todo.sh'
alias u="cd .. && ls"
# alias v="vim"
alias ll='ls -l --group-directories-first'
alias l='ll -Gh'
alias lh='ll -Gh'
alias lt='ll -tr'
alias la='ls -la'
alias lsd='ls -ld *(-/DN)'
# -p : conserve les dates, droits lors de la copie
alias cp='cp -p'
alias du='du -h --max-depth=1'
alias dusort='du -h --max-depth=1 | sort -h -r'
alias df='df -h'
alias psg="ps auxw | grep -i "
if [ -x /usr/bin/trash-put ]; then
alias rm='trash-put'
fi
# misc commands
alias ack=ag
alias dif='colordiff -u'
# alias chromium='chromium --disk-cache-dir=/tmp/chromium-cache'
alias ff='firefox -new-tab'
# alias firedef='firefox -no-remote -P default'
# alias firedev='firefox -no-remote -P Webdev'
alias ht='urxvt -name htop -title htop +sb -geometry 80x6 -e htop &'
# alias wo='workon'
alias xp='xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" && echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\""'
# alias ec="emacsclient -n -c"
# alias et="emacsclient -t"
alias vi="vim"
alias sv="sudo vim"
alias cup='conda clean -py;conda update --all'
# alias less="/usr/share/vim/vim73/macros/less.sh"
# simple webserver on port 8000
alias http-serve='python -m http.server'
# open & close dropbox coffre
# alias sync="unison default -batch"
# alias coffre-open='encfs $HOME/Dropbox/coffre $HOME/Documents/coffre-dropbox'
# alias coffre-close='fusermount -u $HOME/Documents/coffre-dropbox'
# ping (since control-c don't work for break ping)
alias ping="ping -c 3"
# start mutt with list mailboxes
#[[ -x `which mutt` ]] && alias mutt="mutt -y"
# alias weechat="urxvt -icon $HOME/lib/dotfiles/applications/weechat-64x64.png -T Weechat -name weechat -e weechat &"
# alias mutt="urxvt -icon $HOME/lib/dotfiles/applications/mutt.svg -T Mutt -name Mutt -e mutt &"
# alias notes="vim ~/ownCloud/Notes/notes.txt"
# alias todo="vim ~/.todo/todo.txt"
# git
alias gb='git branch'
alias gba='git branch -a -vv'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gcm='git checkout main'
alias gco='git checkout'
alias gdi='git diff'
alias gdib='git diff main...HEAD'
alias ggrep='git grep --color -n -P'
alias ghi='git hist'
alias glgg='git log --graph --max-count=5'
alias glg='git log --stat --max-count=5'
alias gpull='git pull'
alias gpush='git push'
alias gr='git rebase'
alias gst='git status -sb'
alias rgit='function _rgit(){ find . -type d -name .git -printf "\n%p\n" -execdir git "$@" \;; }; _rgit'
# kitty
alias icat="kitty +kitten icat"
alias idiff="kitty +kitten diff"