.config/zsh/.zshrc

65 lines
976 B
Bash
Raw Normal View History

2023-01-19 11:43:23 -05:00
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