zsh add
This commit is contained in:
parent
217f05ce45
commit
6c94a12fae
64
zsh/.zshrc
Normal file
64
zsh/.zshrc
Normal file
@ -0,0 +1,64 @@
|
||||
export MAIL="cchauvet@student.42angouleme.fr"
|
||||
function commit {
|
||||
git add .
|
||||
git commit -m $1
|
||||
git push
|
||||
}
|
||||
alias gcl='git clone'
|
||||
alias ga='git add'
|
||||
alias gr='git restore'
|
||||
alias grm='git rm'
|
||||
alias gpl='git pull'
|
||||
alias gp='git push'
|
||||
alias gs='git status'
|
||||
alias gcm='git commit -m'
|
||||
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
alias v='nvim'
|
||||
|
||||
export PS1='%F{green}%/
|
||||
$%f '
|
||||
|
||||
export RPS1='%F{red}%B%(?..[%?])%f%b'
|
||||
alias gcf='gcc -Wall -Werror -Wextra -g -O0'
|
||||
alias gc='gcc -g -O0'
|
||||
|
||||
function val {
|
||||
gc $@
|
||||
valgrind ./a.out
|
||||
rm ./a.out
|
||||
}
|
||||
function valf {
|
||||
gcf $@
|
||||
valgrind --leak-check=full --show-leak-kinds=all ./a.out
|
||||
rm ./a.out
|
||||
}
|
||||
function ex {
|
||||
gcf $@
|
||||
./a.out
|
||||
rm ./a.out
|
||||
}
|
||||
function exx {
|
||||
gc $@
|
||||
./a.out
|
||||
rm ./a.out
|
||||
}
|
||||
|
||||
function exa {
|
||||
gcf *.c
|
||||
./a.out $@
|
||||
rm ./a.out
|
||||
}
|
||||
|
||||
function debuf {
|
||||
gcf $@
|
||||
gdb -x -w ./a.out
|
||||
rm ./a.out
|
||||
}
|
||||
stty stop undef
|
||||
stty start undef
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
alias q=exit
|
||||
export fpath=($HOME/.local/bin/SupraVim $fpath)
|
||||
autoload compinit; compinit
|
Loading…
Reference in New Issue
Block a user