confOS/.config/fish/conf.d/abbr_wsl.fish

48 lines
2.2 KiB
Fish
Raw Normal View History

2023-03-12 23:35:32 +01:00
abbr ls 'exa --git --icons -gl'
abbr cp 'cp -rv'
abbr rm 'rm -rf'
abbr mgcc 'clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes \
2023-03-13 00:09:07 +01:00
-fanalyzer -fsanitize=undefined -g main.c && ./a.out; rm a.out 2> /dev/null'
2023-03-12 23:35:32 +01:00
abbr vgcc 'clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes \
2023-03-13 00:09:07 +01:00
-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'
2023-03-12 23:35:32 +01:00
abbr mg++ 'clear; g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g \
2023-03-13 00:09:07 +01:00
-Wold-style-cast -Wsign-conversion main.cpp && ./a.out; rm a.out 2> /dev/null'
2023-03-12 23:35:32 +01:00
abbr vg++ 'clear; g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g \
2023-03-13 00:09:07 +01:00
-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'
2023-03-12 23:35:32 +01:00
abbr mmake 'clear; make && ./main; make clean 2> /dev/null'
abbr vmake 'clear; make && valgrind --leak-check=full --show-leak-kinds=all \
2023-03-13 00:09:07 +01:00
--track-origins=yes -s ./main; make clean 2> /dev/null'
2023-03-12 23:35:32 +01:00
abbr activate 'source bin/activate.fish'
abbr c 'command'
abbr vs 'code .'
abbr untgz 'tar xvzf'
abbr tgz 'tar czf \"Archive.tar.gz\"'
abbr - 'cd -'
abbr cd.. 'cd ..'
abbr ..2 'cd ../..'
abbr ..3 'cd ../../..'
abbr ..4 'cd ../../../..'
abbr ..5 'cd ../../../../..'
abbr cat 'bat'
abbr nano 'micro'
abbr bigupdate 'yay -Syu --noconfirm && tldr --update && yes | sdk update && \
2023-03-13 00:09:07 +01:00
yes | sdk upgrade java'
2023-03-12 23:35:32 +01:00
abbr d 'explorer.exe .'
abbr gc 'git clone'
abbr cl 'cat src/**.* | sed \'/^\s*$/d\' | wc -l'
abbr mirrors_update "curl -s \
2023-03-13 00:09:07 +01:00
'https://archlinux.org/mirrorlist/?country=FR&country=GB&protocol=https&use_mirror_status=on' \
| sed -e 's/^#Server/Server/' -e '/^#/d' | sudo bash -c 'rankmirrors -n 7 - > \
/etc/pacman.d/mirrorlist' && sudo pacman -Syy"
2023-03-12 23:35:32 +01:00
abbr ocamlbuild 'ocamlbuild -no-hygiene'
abbr opamupdate 'opam update && opam upgrade -y'
abbr yay-rebuild 'checkrebuild | awk \'{print \$2}\' | xargs -r yay -S \
2023-03-13 00:09:07 +01:00
--rebuildtree --noconfirm'
2023-03-12 23:35:32 +01:00
abbr pacman-clean 'sudo pacman -Rsn \$(pacman -Qqtd) --noconfirm'
abbr diff 'delta'
abbr grep 'grep -Irni \'txt\' .'
abbr unison 'unison ~/src ~/u_dest'
abbr zip 'zip -r \"archive.zip\" dossier'