Skip to content

Latest commit

 

History

History
108 lines (83 loc) · 2.44 KB

utils-cmd.md

File metadata and controls

108 lines (83 loc) · 2.44 KB

SHELL COMMAND

Online

Terminal

Utils

ZSH

Vim

Remove

mv node_modules ../node_modules.bak
rmdir /s /q node_modules (windows)
rm -r -f node_modules (linux)
rm -rf ./node_modules (macos)
rm -rf ./node_modules/.cache/nx
rm .git/hooks/pre-commit
rm .git/hooks/pre-push
rm -f .git/index.lock

Alias

alias ..="cd .."
alias ...="cd ../.."

WSL2

explorer.exe .

WSL2/Nix

install

# start wsl session & start deamon as root: https://nixos.org/manual/nix/stable/installation/multi-user.html
wsl
sudo su -
nix-daemon
# start another wsl session and enjoy your nix commands
wsl
nix develop --extra-experimental-features nix-command --extra-experimental-features flakes

uninstall

# https://nix-tutorial.gitlabpages.inria.fr/nix-tutorial/installation.html
# https://github.com/NixOS/nix/issues/1402
# https://github.com/NixOS/nix/issues/5370

# Delete the Nix store (and misc. Nix-related files) as root: 
rm -rf /nix/
# Delete the Nix configuration file as root: 
rm -rf /etc/nix
# Delete your user links as normal user: 
rm -rf ~/.nix-channels ~/.nix-defexpr ~/.nix-profile

Various

find . -type f -name '*.service.ts' -exec du -s {} + |sort -n