sync with arch config
This commit is contained in:
parent
f6d1022708
commit
d4a917d56b
1 changed files with 11 additions and 2 deletions
13
wsl.sh
13
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"
|
||||
|
|
Loading…
Reference in a new issue