ConfigsProgramas

De GhostWiki
Saltar a: navegación, buscar

Configuraciones para distintos programas: Screen Configuración .screenrc

  1. Screen usado normalmente por Yuki
  2. Skip the startup message

startup_message off

caption always caption string "%{Bk}%-w%{kB}%n %t%{-}%+w  %=| %0c | %Y-%m-%d "

  1. hardstatus alwayslastline
  2. hardstatus string "%{= kg}%{G}%H %{g}?%= %{= kw}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}?%{=b C}%d %M %c?%{W}"
  1. para ir a la ventana anterior y siguiente

bindkey -k k8 prev bindkey -k k9 next

  1. 040126 To be able to select windows with n > 9 ->
  2. press "C-a - #" instead of just "C-a #"

bind - command -c select_1n bind -c select_1n 0 select 10 bind -c select_1n 1 select 11 bind -c select_1n 2 select 12 bind -c select_1n 3 select 13 bind -c select_1n 4 select 14 bind -c select_1n 5 select 15 bind -c select_1n 6 select 16 bind -c select_1n 7 select 17 bind -c select_1n 8 select 18 bind -c select_1n 9 select 19

  1. para ir a las ventasnas 20 en adelante haciendo
  2. "Control+a -- #" para ir a la ventana #

bind -c select_1n - command -c select_2n bind -c select_2n 0 select 20 bind -c select_2n 1 select 21 bind -c select_2n 2 select 22 bind -c select_2n 3 select 23 bind -c select_2n 4 select 24 bind -c select_2n 5 select 25 bind -c select_2n 6 select 26 bind -c select_2n 7 select 27 bind -c select_2n 8 select 28 bind -c select_2n 9 select 29 bind -c select_2n - select -

Ejemplo con splits

split -v screen -t bash bash split focus down screen -t telnet telnet localhost 4000 focus down screen -t htop htop split focus down screen -t bash2 bash split focus down screen -t elinks elinks http://www.google.com

  1. y de regalo te añado esto ;-D

startup_message off caption always hardstatus alwayslastline "%{Bk}%-w%{kB}%n %t%{-}%+w  %=| %0c | %Y-%m-%d "

Terminator Ejemplo de configuración sencilla

scrollbar_position=disabled background_color=#31353A foreground_color=#ffffff font=Mono 11 palette=#000000000000:#aaaa00000000:#0000aaaa0000:#aaaa55550000:#00000000aaaa:#aaaa0000aaaa:#0000aaaaaaaa:#aaaaaaaaaaaa:#555555555555:#ffff55555555:#5555ffff5555:#ffffffff5555:#55555555ffff:#ffff5555ffff:#5555ffffffff:#ffffffffffff

.emacs

.vimrc

"Para usar consola de fondo oscuro set background=dark

"Busquedas molonas al vuelo set hlsearch set incsearch

"Tabulaciones siempre a 4 espacios, con indentado automagico set expandtab set shiftwidth=4 set softtabstop=4 set autoindent

"El cursor, siempre a 4 filas del borde de pantalla, gracias. set scrolloff=4

"Subrayame la línea actual, pa localizarme rapidamente al cambiar de viewports o lo que sea. au BufReadPost? * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif


"Para ir al fichero siguiente/anterior cuando abrimos varios a la vez:

map <silent> <F10> :n<CR>
map <silent> <F9> :N<CR>

" pressing < or > will let you indent/unident selected lines vnoremap < <gv vnoremap > >gv

" para que cuando escribamos mal, nos lo acepte command! Qa qa command! Q q command! W w command! Wq wq


.gitconfig

Varios alias para no tener que escribir tanto. Aparte, añadido el programa "meld" para ver las diferencias.

Nota: Las palabras que no están sangradas (user, color...) deben ir entre corchetes (],[), pero el wiki les pone un enlace, así que no los pongo.