Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Created by newuser for 4.3.10
- autoload -U compinit
- compinit
- #promptinit; prompt elite2
- setopt correct hist_ignore_all_dups hist_ignore_space
- #fortune | cowsay -f ~/themes/cows/ren.cow -W 55
- alias instalados='cd /var/db/pkg/ && for i in */*; do ls -d $i; done'
- function recal () {
- if [ -z "$1" ]; then
- echo "Uso: recal <cadena>, para buscar <cadena> en el historial de zsh."
- else
- history | grep "$1" | grep -v recal
- fi
- }
- function radgnu () {
- #mplayer http://radiognu.org:8000/radiognu.ogg
- # mplayer http://radio.gnu.org.ve/radiognu.ogg
- mplayer http://audio.radiognu.org:8000/radiognu.ogg
- }
- #function radgnup () {
- #mplayer http://radiognu.org:8000/pruebas.ogg
- #}
- function radgnumet () {
- mplayer http://audio.radiognu.org/radiometagnu.ogg
- }
- function xtvradio () {
- mplayer http://87.117.197.145:34160/
- }
- function cooperativa () {
- mplayer http://209.88.205.240:80
- }
- function elconquistador () {
- mplayer http://72.9.254.235:8000/cqfm
- }
- function hardradio () {
- mplayer http://66.90.91.59:80/hardradio.mp3
- }
- function newage () {
- mplayer http://217.118.24.169:8006/listen.pls
- }
- function newage2 () {
- mplayer http://91.121.89.153:9900
- }
- function vtv () {
- #mplayer -vo x11 http://www.telepuertovirtual2.tv/vtvdsl
- mplayer -cache 9000 rtmp://movipbox.streamguys.net/vtvdsl/vtvdsl.sdp
- }
- function konatastation () {
- mplayer http://87.117.205.144:8320
- }
- function cleanclip () {
- echo Limpiando el portapapeles.....
- touch blank
- xclip -selection clipboard blank
- echo Portapapeles Limpio
- rm blank
- }
- function canal13 () {
- mplayer http://streaming.entelchile.net/canal13
- }
- function aricatv () {
- mplayer mms://wms.digitalproserver.com/aricatv
- }
- function mp3 () {
- echo "Escriba la ruta en donde estan los .mp3 para reproducir"
- echo "Recuerde poner *.mp3 en el la ruta de los mp3 ej: /home/foo/*.mp3"
- read xD2
- mpg123 -C $xD2
- }
- function nmapeo () {
- if [ -z "$1" ]; then
- echo "Uso: nmapeo <url o host>, escanea una url o host invocando a nmap ^_^"
- else
- nmap -T4 -A -v -PN "$1"
- fi
- }
- function shot () {
- if [ -z "$1" ]; then
- echo "Uso: shot <cadena>, saca una captura de pantalla con scrot en intervalos de 2 segundos,
- especificando un fichero de imagen."
- else
- scrot -c -d2 "$1"
- fi
- }
- function compactafox () {
- for f in ~/.mozilla/firefox/*/*.sqlite; do sqlite3 $f 'VACUUM;'; done
- }
- function screencast () {
- echo "Escriba el nombre de fichero para hacer el screencast"
- echo "Ej: screencast.avi"
- read rec
- ffmpeg -f x11grab -r 24 -s 1366x768 -i :0.0 -vcodec huffyuv -sameq $rec
- }
- function encodear () {
- echo "Escriba el nombre de fichero para el encoding. Ej: xDD.avi"
- read origen
- echo "Escriba el fichero de salida. Ej: xD2.avi"
- read destino
- ffmpeg -i $origen -sameq $destino
- }
- export HISTSIZE=2000
- export HISTFILE="$HOME/.history"
- export SAVEHIST=$HISTSIZE
- echo "Quote of day: $(/usr/bin/fortune -s)"
- alias ls='ls --color=auto'
- # Change the window title of X terminals
- chpwd (){
- [[ -t 1 ]] || return
- case ${TERM} in
- xterm*|rxvt*|Eterm|aterm|kterm|gnome*|interix)
- echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD/$HOME/~}\007"
- ;;
- screen)
- echo -ne "\033_${USER}@${HOST%%.*}:${PWD/$HOME/~}\033\\"
- ;;
- esac
- }
- use_color=false
- chpwd
- safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
- match_lhs=""
- # Try to keep environment pollution down, EPA loves us.
- unset use_color safe_term match_lhs
- #PS1
- PS1='%B[%n@%m:%~]%#%b '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement