Advertisement
cirrus

.bashrc

Oct 17th, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. #
  2. # ~/.bashrc
  3. #
  4. cat /etc/motd
  5. command cowsay -f tux $(fortune all)
  6. # If not running interactively, don't do anything
  7. [[ $- != *i* ]] && return
  8. alias ls='ls --color=auto'
  9. PS1="$sq_color\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[01;36m\]\342\234\227$sq_color]\342\224\200\")[\[\033[01;31m\]\t$sq_color]\342\224\200[\[\033[01;36m\]\u@\h$sq_color]\n\342\224\224\342\224\200\342\224\200> \[\033[01;35m\]\W$sq_color $ \[\033[01;32m\]>>\\[\\033[0m\\] "
  10. #PS1='[\u@\h \W]\$ '
  11. #PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;31m\]\w\[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[0;36m\] '
  12. #PS1='\[\e[1;31m\][\u@\h \W]\$\[\e[1;36m\] '
  13. if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
  14. . startx
  15. logout
  16. fi
  17. #shell profile file
  18. setxkbmap -layout gb
  19.  
  20. # alias
  21. alias pacsyy="sudo pacman -Syy" #update mirrors
  22. alias pacsu="sudo pacman -Su" #upgrade all packages
  23. alias pacinfo="sudo pacman -Si" #show information about a package
  24. alias pacsyu="pacman -Syu" #upgrade all packages to latest version
  25. alias pacinst="sudo pacman -S" #install package/s
  26. alias paclist="sudo pacman -Ql" #list all files installed by package
  27. alias paclistll="pacman -Qqm" #list all packages locally installed
  28. alias pacr="sudo pacman -R" #uninstall one or more package/s
  29. alias pacrns="sudo pacman -Rns" #uninstall package and deps
  30. alias pacorph="sudo pacman -Qdt" #list all packages which are orphaned
  31. alias pacown="pacman -Qo" #determine which package owns a given file
  32. alias pacsearch="sudo pacman -Ss" #search for a package (not AUR)
  33. alias pacachec="pacman -Sc" #delete all package files from cache
  34. alias ysearch="yaourt -Ss" #search for a package AUR
  35. alias yinstall="yaourt -S" #yaourt install package
  36. alias reboot="systemctl reboot"
  37. alias poweroff="systemctl poweroff"
  38. alias shutdown="systemctl poweroff"
  39. alias supy="supybot Neo.conf"
  40. alias wee="weechat-curses"
  41. alias ncm="ncmpcpp"
  42. alias news="newsbeuter"
  43. alias twit="pieppiep"
  44. alias twitr="pieppiep fetch 20"
  45. alias unetbootin="sudo unetbootin"
  46. alias gparted="sudo gparted"
  47. alias netlisten='lsof -i -P | grep LISTEN'
  48. alias nstat="netstat -p TCP -eWc"
  49. alias dmesg="dmesg"
  50. alias pizza="sleep 10m && echo ⚠⚠⚠ pizza is done ⚠⚠⚠ "
  51. alias userlist='cat /etc/passwd |grep "/bin/bash" |grep "[5-9][0-9][0-9]" |cut -d: -f1'
  52. alias age="sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'"
  53. alias teamviewerstart="sudo systemctl start teamviewerd"
  54. alias youtube="youtube-viewer"
  55. alias youtubedl="youtube-viewer -d"
  56. alias subs="youtube-viewer -S"
  57. alias sshon="sudo systemctl start sshd.service"
  58. alias sshoff="sudo systemctl stop sshd.service"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement