-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cfgAllSys.sh
91 lines (74 loc) · 2.31 KB
/
.cfgAllSys.sh
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
if [ -d $HOME/.oh-my-zsh ]; then
export ZSH=$HOME/.oh-my-zsh
export UPDATE_ZSH_DAYS=1
source $ZSH/oh-my-zsh.sh
fi
if [ -f $HOME/.gitSync/gitSync.sh ]; then
source $HOME/.gitSync/gitSync.sh
fi
# Colors man
export LESS_TERMCAP_mb=$'\E[01;31m' # début de blink
export LESS_TERMCAP_md=$'\E[01;31m' # début de gras
export LESS_TERMCAP_me=$'\E[0m' # fin
export LESS_TERMCAP_so=$'\E[01;44;33m' # début de la ligne d`état
export LESS_TERMCAP_se=$'\E[0m' # fin
export LESS_TERMCAP_us=$'\E[01;32m' # début de souligné
export LESS_TERMCAP_ue=$'\E[0m' # fin
# Change viewer of man
export PAGER=less
export LESS="-FSRX"
# Colors grep
export GREP_OPTIONS="--color=auto"
# Add path to potential cd anywhere
CDPATH="$HOME/:$HOME/Sync/:$HOME/Sync/C/:$HOME/Sync/C/sh/:$HOME/Sync/love"
# Du
alias showBig="du -ch | grep 'M '"
alias showRealyBig="du -ch | grep 'G '"
# Zshrc
alias vz="vim ~/.zshrc"
alias sz="source ~/.zshrc"
alias cz="cat ~/.zshrc"
alias va="vim ~/.cfgAllSys.sh"
# View
alias tree="tree -Cah"
alias la="ls -lah"
alias l="ls -la"
# Compile
alias c+="clang++ *cpp"
alias CC="/usr/bin/gcc"
# Git
# extension homyzsh
plugins=(git)
# Fount master by default
git config --global push.default matching
# Set vim viewer for merge
git config --global merge.tool vimdiff
alias gs="git status"
alias gp="git push origin master"
alias gc="git commit -am"
alias gl="git log --graph --decorate --abbrev-commit --cherry --pretty=oneline master origin/master master"
alias gll="git log --graph --decorate --abbrev-commit --cherry --relative-date master origin/master master"
alias pk="pkill -u `whoami`"
alias dieDuty=\
"
rm -f ~/**/.*.(swp|swo|gch);
rm -f ~/**/**.o;
rm -rf ~/**/.DS_Store
"
alias die=\
"
rm -f .*.(swp|swo|gch);
rm -f *.o;
rm -rf .DS_Store;
rm a.out
"
# Install ohmyzsh, vundle, pathogen and nerdtree
alias autoInstall="
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
rm -rf .zsh-update .zshrc.pre-oh-my-zsh .zshrc-e .zcompdump*
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
"