Advertisement
Dj_Dexter

.zshrc

Dec 24th, 2011
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.96 KB | None | 0 0
  1. # Created by newuser for 4.3.10
  2. autoload -U compinit
  3. compinit
  4. #promptinit; prompt elite2
  5. setopt correct hist_ignore_all_dups hist_ignore_space
  6. #fortune | cowsay -f ~/themes/cows/ren.cow -W 55
  7. alias instalados='cd /var/db/pkg/ && for i in */*; do ls -d $i; done'
  8. function recal () {
  9.   if [ -z "$1" ]; then
  10.     echo "Uso: recal <cadena>, para buscar <cadena> en el historial de zsh."
  11.   else
  12.     history | grep "$1" | grep -v recal
  13.   fi
  14. }
  15. function radgnu () {
  16. #mplayer http://radiognu.org:8000/radiognu.ogg
  17. # mplayer http://radio.gnu.org.ve/radiognu.ogg
  18. mplayer http://audio.radiognu.org:8000/radiognu.ogg
  19. }
  20. #function radgnup () {
  21. #mplayer http://radiognu.org:8000/pruebas.ogg
  22. #}
  23. function radgnumet () {
  24. mplayer http://audio.radiognu.org/radiometagnu.ogg
  25. }
  26. function xtvradio () {
  27. mplayer http://87.117.197.145:34160/
  28. }
  29. function cooperativa () {
  30. mplayer http://209.88.205.240:80
  31. }
  32. function elconquistador () {
  33. mplayer http://72.9.254.235:8000/cqfm
  34. }
  35. function hardradio () {
  36. mplayer http://66.90.91.59:80/hardradio.mp3
  37. }
  38. function newage () {
  39. mplayer http://217.118.24.169:8006/listen.pls
  40. }
  41. function newage2 () {
  42. mplayer http://91.121.89.153:9900
  43. }
  44. function vtv () {
  45. #mplayer -vo x11 http://www.telepuertovirtual2.tv/vtvdsl
  46. mplayer -cache 9000 rtmp://movipbox.streamguys.net/vtvdsl/vtvdsl.sdp
  47. }
  48. function tvn () {
  49. rtmpdump --pageUrl "http://www.tvn.cl/servicios/senal/2010/index.html" --swfUrl  "http://www.tvn.cl/include/mediaplayer/player.swf" --rtmp "rtmp://190.196.11.201/envivo" --playpath "tvchile_s" --live --flv - | mplayer - -vo x11 -cache 5000
  50. }
  51. function chv () {
  52. flvstreamer --pageUrl "http://www.chilevision.cl/home/index.php?option=com_content&task=blogcategory&id=1&Itemid=1624" --rtmp "rtmp://streaming.chilevision.cl/internacional" --playpath "livestream" --live -o - | mplayer - -vo x11 -vf pp=linblenddeint -cache 1200
  53. }
  54. function konatastation () {
  55. mplayer http://87.117.205.144:8320
  56. }
  57. function cleanclip () {
  58. echo Limpiando el portapapeles.....
  59. touch blank
  60. xclip -selection clipboard blank
  61. echo Portapapeles Limpio
  62. rm blank
  63. }
  64.  
  65. function canal13 () {
  66. mplayer http://streaming.entelchile.net/canal13
  67. }
  68. function aricatv () {
  69. mplayer mms://wms.digitalproserver.com/aricatv
  70. }
  71. function mp3 () {
  72. echo "Escriba la ruta en donde estan los .mp3 para reproducir"  
  73. echo "Recuerde poner *.mp3 en el la ruta de los mp3 ej: /home/foo/*.mp3"  
  74. read xD2
  75. mpg123 -C $xD2
  76. }
  77. function nmapeo () {
  78. if [ -z "$1" ]; then
  79.     echo "Uso: nmapeo <url o host>, escanea una url o host invocando a nmap ^_^"
  80.   else
  81.     nmap -T4 -A -v -PN "$1"
  82.   fi
  83. }
  84. function shot () {
  85. if [ -z "$1" ]; then
  86.    echo "Uso: shot <cadena>, saca una captura de pantalla con scrot en intervalos de 8 segundos,
  87. especificando un fichero de imagen."
  88.   else
  89.    scrot -c -d8 "$1"
  90.    ompload "$1"
  91.   fi
  92. }
  93. function compactafox () {
  94. for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done
  95. }
  96.  
  97. function screencast () {
  98. echo "Escriba el nombre de fichero para hacer el screencast"
  99. echo "Ej: screencast.avi"
  100. read rec
  101. ffmpeg -f x11grab -r 24 -s 1366x768 -i :0.0 -vcodec huffyuv -sameq $rec
  102. }
  103.  
  104. function encodear () {
  105. echo "Escriba el nombre de fichero para el encoding. Ej: xDD.avi"
  106. read origen
  107. echo "Escriba el fichero de salida. Ej: xD2.avi"
  108. read destino
  109. ffmpeg -i $origen -sameq $destino
  110. }
  111.  
  112. export HISTSIZE=2000
  113. export HISTFILE="$HOME/.history"
  114. export SAVEHIST=$HISTSIZE
  115.  
  116. echo "Quote of day: $(/usr/bin/fortune -s)"      
  117.    
  118. alias ls='ls --color=auto'
  119. # Change the window title of X terminals
  120. chpwd (){
  121.  
  122. [[ -t 1 ]] || return
  123. case ${TERM} in
  124.     xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
  125.         echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD/$HOME/~}\007"
  126.         ;;
  127.     screen)
  128.         echo -ne "\033_${USER}@${HOST%%.*}:${PWD/$HOME/~}\033\\"
  129.         ;;
  130. esac
  131.  
  132. }
  133. use_color=false
  134. chpwd
  135. safe_term=${TERM//[^[:alnum:]]/?}   # sanitize TERM
  136. match_lhs=""
  137. # Try to keep environment pollution down, EPA loves us.
  138. unset use_color safe_term match_lhs
  139. #PS1
  140. PS1='%B[%n@%m:%~]%#%b '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement