Advertisement
ambarino

Functionalities for the terminal

Jun 22nd, 2021
1,160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. #pegar en ~/.zshrc
  2. killport() {
  3.   sudo kill -9 $(sudo lsof -t -i:$1)
  4. }
  5. #killport 3000
  6. deleteFile() {
  7.   find . -type f -name "$1" -delete
  8. }
  9. #deleteFile archivo
  10. deleteFolder() {
  11.   find . -type d -name "$1" -exec rm -rf {} +
  12. }
  13. #deleteFolder node_modules
  14. deleteByExtension() {
  15.   find . -type f -name "*.$1"  -delete
  16. }
  17. #deleteByExtension zip
  18. _buildNormal() {
  19.   rm -rf server/public/*;
  20.   rm -rf client/build;
  21.   cd client;
  22.   npm run build;
  23.   cd ..;
  24.   mv client/build/* server/public;
  25.   git add .;
  26.   git commit -m "Deploying";
  27.   git subtree push --prefix=server heroku master;
  28.   heroku logs --tail
  29. }
  30. #_buildNormal
  31. alias gmail="google-chrome https://mail.google.com/mail/u/1/#inbox"
  32. #opens gmail
  33. alias size="du -a . | sort -n -r | head -n 20"
  34. #list folders occupying more disk space
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement