From d4a917d56bfd290a7a164769743e52301abe67b1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 29 Sep 2022 17:03:11 +0200 Subject: [PATCH] sync with arch config --- wsl.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wsl.sh b/wsl.sh index af7f2eb..6f8f4aa 100644 --- a/wsl.sh +++ b/wsl.sh @@ -24,6 +24,9 @@ then apt purge -y needrestart # remove kernel update message (https://github.com/microsoft/WSL/issues/7054#issuecomment-864271333) apt autoremove -y + # == Locales == + # !TODO! + # === Fish == # Remove motd fish -c "set -U fish_greeting" @@ -73,8 +76,8 @@ then fish -c "abbr ls 'exa --git --icons -gl'" fish -c "abbr cp 'cp -rv'" fish -c "abbr rm 'rm -rf'" - fish -c "abbr gcc 'clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -g main.c && ./a.out; rm a.out 2> /dev/null'" - fish -c "abbr vgcc 'clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -g main.c && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./a.out; rm a.out 2> /dev/null'" + fish -c "abbr gcc 'clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g main.c && ./a.out; rm a.out 2> /dev/null'" + fish -c "abbr vgcc 'clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g main.c && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./a.out; rm a.out 2> /dev/null'" fish -c "abbr g++ 'clear; g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g -Wold-style-cast -Wsign-conversion main.cpp && ./a.out; rm a.out 2> /dev/null'" fish -c "abbr vg++ 'clear; g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g -Wold-style-cast -Wsign-conversion main.cpp && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./a.out; rm a.out 2> /dev/null'" fish -c "abbr make 'clear; make && ./main; make clean 2> /dev/null'" @@ -83,7 +86,9 @@ then fish -c "abbr c 'command'" fish -c "abbr vs 'code .'" fish -c "abbr untgz 'tar -xvzf'" + fish -c "abbr tgz 'tar czf \"Archive.tar.gz\"'" fish -c "abbr - 'cd -'" + fish -c "abbr cd.. 'cd ..'" fish -c "abbr cat 'batcat'" fish -c "abbr nano 'micro'" fish -c "abbr bigupdate 'sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && tldr --update && yes | sdk update && yes | sdk upgrade java'" @@ -176,6 +181,10 @@ then git config --global pull.rebase true git config --global init.defaultBranch main + # === Path == + # Add PIP packages from Python to the path + fish_add_path /home/anri/.local/bin + echo -e "\nInstallation terminée !\nIl faut redémarrer WSL (dans Powershell = wsl --shutdown)." echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :" echo "- Ligne de commande = wsl.exe -d Ubuntu fish"