abbr and alias fixes
- add comments when needed - rename grep to mgrep - dont delete a.out for mgcc mg++ vgcc vg++ - clean then clear for vmake mmake - use *.out instead of a.out - fix wpwd
This commit is contained in:
parent
6a6131acaf
commit
5e4a833209
2 changed files with 11 additions and 11 deletions
|
@ -7,23 +7,23 @@ abbr ..5 "cd ../../../../.."
|
||||||
abbr - "cd -"
|
abbr - "cd -"
|
||||||
abbr bigupdate "paru -Syu --noconfirm && tldr --update && yes | sdk update && yes | sdk upgrade java"
|
abbr bigupdate "paru -Syu --noconfirm && tldr --update && yes | sdk update && yes | sdk upgrade java"
|
||||||
abbr cat "bat -pp"
|
abbr cat "bat -pp"
|
||||||
abbr c command
|
abbr c command # Cancel abbreviation, alias of \
|
||||||
abbr cd.. "cd .."
|
abbr cd.. "cd .."
|
||||||
abbr cl "cat src/**.* | sed '/^\s*\$/d' | wc -l"
|
abbr cl "cat src/**.* | sed '/^\s*\$/d' | wc -l" # Count lines of code without newlines
|
||||||
abbr cp "cp -rv"
|
abbr cp "cp -rv"
|
||||||
abbr diff delta
|
abbr diff delta
|
||||||
abbr grep "grep -Irni 'txt' ."
|
abbr mgrep "grep -Iirnw 'text' ." # Find anything inside files of current directory
|
||||||
abbr ls "eza --git --icons -gl"
|
abbr ls "eza --git --icons -gl"
|
||||||
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 && ./a.out; rm a.out 2> /dev/null"
|
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 && ./a.out; rm a.out 2> /dev/null"
|
abbr mg++ "clear; g++ -Wall -Wextra -Wdouble-promotion -Wshadow -Wnon-virtual-dtor -pedantic -g3 -Wold-style-cast -Wsign-conversion main.cpp && ./*.out"
|
||||||
abbr mmake "clear; make && ./main; make clean 2> /dev/null"
|
abbr mmake "make clean && clear; make && ./*.out"
|
||||||
abbr nano micro
|
abbr nano micro
|
||||||
abbr ocamlbuild "ocamlbuild -no-hygiene"
|
abbr ocamlbuild "ocamlbuild -no-hygiene"
|
||||||
abbr opamupdate "opam update && opam upgrade -y"
|
abbr opamupdate "opam update && opam upgrade -y"
|
||||||
abbr rm "rm -rf"
|
abbr rm "rm -rf"
|
||||||
abbr tgz "tar czf 'Archive.tar.gz'"
|
abbr tgz "tar czf 'Archive.tar.gz'"
|
||||||
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"
|
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 ./*.out"
|
||||||
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"
|
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 ./*.out"
|
||||||
abbr vmake "clear; make && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./main; make clean 2> /dev/null"
|
abbr vmake "make clean && clear; make dev && valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./main"
|
||||||
abbr zip "zip -r 'archive.zip' dossier"
|
abbr zip "zip -r 'archive.zip' dossier"
|
||||||
abbr mfind "find /* 2> /dev/null | grep ''"
|
abbr mfind "find /* 2> /dev/null | grep ''" # Search for any filename in all disks
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
alias wpwd "echo '\\\\\wsl.localhost\\Arch$(pwd | tr / \\\ 2> /dev/null)'"
|
alias wpwd "echo '\\\\\wsl.localhost\\Arch$(pwd | tr / \\\\ 2> /dev/null)'"
|
||||||
|
|
Loading…
Reference in a new issue