~/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.alias 1001B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # ~/.alias
  2. ## cp
  3. alias cp="cp -ip"
  4. alias cr="cp -ir"
  5. ## curl
  6. alias hurl="curl -f#LO"
  7. ## df
  8. alias df="df -h"
  9. alias di="df -hi"
  10. ## dig
  11. alias dit="dig +noall +nocmd +answer +multiline"
  12. ## du
  13. alias du="du -hs ./*"
  14. ## free
  15. alias free="free -h"
  16. ## ls
  17. ls="-hSF --group-directories-first --color=auto"
  18. alias l="ls -C $ls"
  19. alias la="ls -aC $ls"
  20. alias ll="ls -al $ls"
  21. alias ls="ls -C $ls"
  22. ## mkdir
  23. alias mkdir="mkdir -vp $@"
  24. ## more
  25. alias more="less"
  26. ## mv
  27. alias mv="mv -i"
  28. ## nano
  29. alias nano="nano -EOSWcimx"
  30. ## ps
  31. alias pss="ps -af | head -1; ps -af | grep -v grep"
  32. alias psw="watch 'ps -af | sort -rk4'"
  33. ## rm
  34. alias rf="rm -rf"
  35. alias rm="rm -i"
  36. alias rr="rm -ir"
  37. ## screen
  38. alias screen="screen"
  39. ## scrot
  40. alias ss="scrot -s ~/Pictures/'Screenshot-%Y%m%d'.png"
  41. ## tar
  42. alias mktar="tar -zcvf archive_`date +%Y%m%d`-`date +%H%M%S`.tar.gz"
  43. alias untar="tar -vxf"
  44. ### Extras #######################################
  45. mkcd() {
  46. mkdir -vp $1
  47. cd $1
  48. }
  49. weather() {
  50. curl http://wttr.in/$1
  51. }