From 6c94a12fae854e223df95bdc96aef6df77f43533 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Thu, 19 Jan 2023 17:43:23 +0100 Subject: [PATCH] zsh add --- zsh/.zshrc | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 zsh/.zshrc diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..8485180 --- /dev/null +++ b/zsh/.zshrc @@ -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