Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| linux:scripts:home [28/09/2011 02:17] – mate | linux:scripts:home [10/06/2022 01:32] (actual) – [ficheros del home] mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| - | = ficheros | + | = mis ficheros |
| == .bash_profile | == .bash_profile | ||
| - | <code bash> | + | <code bash .bash_profile> |
| # ~/ | # ~/ | ||
| Línia 28: | Línia 28: | ||
| == .bashrc | == .bashrc | ||
| - | <code bash> | + | <code bash .bashrc> |
| # ~/.bashrc: executed by bash(1) for non-login shells. | # ~/.bashrc: executed by bash(1) for non-login shells. | ||
| source ~/.alias | source ~/.alias | ||
| Línia 43: | Línia 43: | ||
| == .alias | == .alias | ||
| - | <code bash> | + | <code bash .alias> |
| # $Id: .alias,v 1.1 1999/11/27 23:01:40 sage Exp $ | # $Id: .alias,v 1.1 1999/11/27 23:01:40 sage Exp $ | ||
| # Luis Francisco González < | # Luis Francisco González < | ||
| Línia 54: | Línia 54: | ||
| alias ls='ls --color=tty' | alias ls='ls --color=tty' | ||
| alias lsd=' | alias lsd=' | ||
| + | |||
| # evitar errores (confirmación al sobreescribir) | # evitar errores (confirmación al sobreescribir) | ||
| alias cp='cp -i' | alias cp='cp -i' | ||
| Línia 72: | Línia 73: | ||
| users=' | users=' | ||
| users2=' | users2=' | ||
| + | tree=" | ||
| </ | </ | ||
| == .functions | == .functions | ||
| - | <code bash> | + | <code bash .functions> |
| # reiniciar demonios | # reiniciar demonios | ||
| restart() { | restart() { | ||
| Línia 90: | Línia 92: | ||
| # Generador de Passwords (requiere paquete agp) | # Generador de Passwords (requiere paquete agp) | ||
| function gen-pass { apg -a 0 -n 1 -q -MNCL -m 12; } | function gen-pass { apg -a 0 -n 1 -q -MNCL -m 12; } | ||
| + | |||
| + | # Generador de Passwords (no requiere nada) | ||
| + | function genpasswd() { | ||
| + | local l=$1 | ||
| + | [ " | ||
| + | tr -dc A-Za-z0-9_ < / | ||
| + | } | ||
| # Envia mails para recordar tareas | # Envia mails para recordar tareas | ||
| function task { | function task { | ||
| - | mail -s " | + | mail -s " |
| } | } | ||
| Línia 123: | Línia 132: | ||
| == .export | == .export | ||
| - | <code bash> | + | <code bash .export> |
| # utilizar LESS en lugar de MAN y utilizar colores | # utilizar LESS en lugar de MAN y utilizar colores | ||
| export LESS_TERMCAP_mb=$' | export LESS_TERMCAP_mb=$' | ||
| Línia 135: | Línia 144: | ||
| == DIR_COLORS | == DIR_COLORS | ||
| - | <code bash> | + | <code bash DIR_COLORS> |
| # Coreutils version coreutils-6.10 | # Coreutils version coreutils-6.10 | ||
| # If you do not modify this file, it will be updated when you upgrade | # If you do not modify this file, it will be updated when you upgrade | ||
| Línia 333: | Línia 342: | ||
| </ | </ | ||
| == .prompt | == .prompt | ||
| - | <code bash> | + | <code bash .prompt> |
| # para poner en PS1, 2 líneas, en color, la primera user@host pwd, la segunda el shell | # para poner en PS1, 2 líneas, en color, la primera user@host pwd, la segunda el shell | ||
| \[\e]0; | \[\e]0; | ||
| Línia 339: | Línia 348: | ||
| == .vimrc | == .vimrc | ||
| - | <code bash> | + | <code bash .vimrc> |
| " Configuration file for vim | " Configuration file for vim | ||
| set runtimepath=~/ | set runtimepath=~/ | ||