-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias
63 lines (54 loc) · 1.84 KB
/
alias
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
#file management
alias mv="mv -v"
alias cp="cp -v"
alias rm="rm -v"
alias ne='emacs -nw'
alias mk='make re; mr_clean; clear'
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
alias ln="ln -v"
alias lc="ls |cat"
#git
alias blih='blih -u [email protected]'
alias checkout="git checkout -- "
alias gt='git status'
alias gitp='ping git.epitech.eu'
alias gitkraken='~/bin/gitkraken/gitkraken'
#search
alias what='ag --hidden --ignore .git'
alias where='find . -name '
alias open='nautilus'
#yaourt
alias install="yaourt -Sa"
alias update="yaourt -Syu"
alias updateall="yaourt -Syua"
alias remove="yaourt -Rsn"
alias search="yaourt"
# alias autoremove_="sudo pacman -R $(pacman -Qdtq)"
#docker
alias docker-clean='docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")'
alias docker_here='sudo docker run --privileged=true --cap-add="SYS_PTRACE" --security-opt="apparmor:unconfined" -v `pwd`:/repo -v ~/.ssh:/root/.ssh -ti epitechcontent/epitest-docker /bin/bash'
#other
alias lock='~/bin/lock_script/lock.sh'
alias sublime='~/sublime_text_3/sublime_text'
alias auto_header="/home/extra/bin/autoHeader/auto_header.py"
alias gdb="gdb -q"
alias valgrind="colour-valgrind"
alias meteo="curl wttr.in/Paris"
alias basekey="keybase"
alias monip="curl ifconfig.co"
alias vcode="~/vcode/code"
#unused
#alias ns_auth='ns_auth -u [email protected]'
#ls
hash gls >/dev/null 2>&1 || alias gls="ls"
# always use color, even when piping (to awk,grep,etc)
if gls --color > /dev/null 2>&1; then colorflag="--color"; else colorflag="-G"; fi;
export CLICOLOR_FORCE=1
#ls options: A = include hidden (but not . or ..), F = put `/` after folders, h = byte unit suffixes
alias ls='gls -AFh ${colorflag} --group-directories-first -I ".git"'
alias lsd='ls -l | grep "^d"' # only directories