2023-03-13 16:12:42 +01:00
|
|
|
#!/usr/bin/fish
|
|
|
|
|
2023-10-23 18:24:44 +02:00
|
|
|
abbr ... "cd ../.."
|
|
|
|
abbr .... "cd ../../.."
|
|
|
|
abbr ..... "cd ../../../.."
|
|
|
|
abbr ...... "cd ../../../../.."
|
2023-05-23 01:04:11 +02:00
|
|
|
abbr - "cd -"
|
2023-11-05 17:17:03 +01:00
|
|
|
abbr bigupdate "paru -Syu --noconfirm && tldr --update && yes"
|
2023-03-19 16:11:12 +01:00
|
|
|
abbr cat "bat -pp"
|
2023-10-10 20:45:33 +02:00
|
|
|
abbr c command # Cancel abbreviation, alias of \
|
2023-03-13 16:12:42 +01:00
|
|
|
abbr cd.. "cd .."
|
2023-10-10 20:45:33 +02:00
|
|
|
abbr cl "cat src/**.* | sed '/^\s*\$/d' | wc -l" # Count lines of code without newlines
|
2023-03-13 16:12:42 +01:00
|
|
|
abbr cp "cp -rv"
|
2023-10-23 18:35:24 +02:00
|
|
|
abbr diff difft
|
2023-10-10 20:45:33 +02:00
|
|
|
abbr mgrep "grep -Iirnw 'text' ." # Find anything inside files of current directory
|
2023-09-07 17:24:42 +02:00
|
|
|
abbr ls "eza --git --icons -gl"
|
2023-10-10 20:45:33 +02:00
|
|
|
abbr mgcc "clear; gcc -Wall -Wextra -Wconversion -Wdouble-promotion -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -fsanitize-undefined-trap-on-error -g3 main.c && ./*.out"
|
|
|
|
abbr mg++ "clear; g++ -Wall -Wextra -Wdouble-promotion -Wshadow -Wnon-virtual-dtor -pedantic -g3 -Wold-style-cast -Wsign-conversion main.cpp && ./*.out"
|
|
|
|
abbr mmake "make clean && clear; make && ./*.out"
|
2023-10-09 17:12:05 +02:00
|
|
|
abbr nano micro
|
2023-03-13 16:12:42 +01:00
|
|
|
abbr ocamlbuild "ocamlbuild -no-hygiene"
|
|
|
|
abbr opamupdate "opam update && opam upgrade -y"
|
|
|
|
abbr rm "rm -rf"
|
|
|
|
abbr tgz "tar czf 'Archive.tar.gz'"
|
2023-10-23 18:24:44 +02:00
|
|
|
abbr vgcc "clear; gcc -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g *.c && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./*.out"
|
|
|
|
abbr vg++ "clear; g++ -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g -Wold-style-cast -Wsign-conversion *.cpp && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./*.out"
|
|
|
|
abbr vmake "make clean && clear; make dev && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./*.out"
|
2023-03-13 16:12:42 +01:00
|
|
|
abbr zip "zip -r 'archive.zip' dossier"
|
2023-10-18 09:23:21 +02:00
|
|
|
abbr mfind "find /* 2> /dev/null | grep -i ''" # Search for any filename in all disks
|
2023-10-12 19:51:23 +02:00
|
|
|
abbr sfind "find * -type f -name '*.sync-conflict*' -ok rm {} \;"
|
2023-11-08 16:25:57 +01:00
|
|
|
abbr grp "git remote prune origin"
|