Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. PS1='\[\e[0;31m\][\[\e[0;41m\]\u\[\e[0;37m\]@\[\e[0;35m\]\h \[\e[1;34m\]\W\[\e[0;31m\]]\$ \[\e[1;32m\]'
  2.  
  3. eval `dircolors -b`
  4.  
  5. export GREP_COLOR="1;33"
  6. alias grep='grep --color=auto'
  7.  
  8. set show-all-if-ambiguous on
  9.  
  10. extract () {
  11. if [ -f $1 ] ; then
  12. case $1 in
  13. *.tar.bz2) tar xvjf $1 ;;
  14. *.tar.gz) tar xvzf $1 ;;
  15. *.tar.xz) tar xvJf $1 ;;
  16. *.bz2) bunzip2 $1 ;;
  17. *.rar) unrar x $1 ;;
  18. *.gz) gunzip $1 ;;
  19. *.tar) tar xvf $1 ;;
  20. *.tbz2) tar xvjf $1 ;;
  21. *.tgz) tar xvzf $1 ;;
  22. *.zip) unzip $1 ;;
  23. *.Z) uncompress $1 ;;
  24. *.7z) 7z x $1 ;;
  25. *.xz) unxz $1 ;;
  26. *.exe) cabextract $1 ;;
  27. *) echo "\`$1': unrecognized file compression" ;;
  28. esac
  29. else
  30. echo "\`$1' is not a valid file"
  31. fi
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement