fix tmux.md and ssh.md

This commit is contained in:
piccihud 2023-06-16 18:02:45 +02:00
parent 10ed983d65
commit e9f8cb1c72
6 changed files with 22 additions and 4 deletions

View File

@ -140,6 +140,8 @@ alias gs="git status"
alias gm="git commit -m"
# alias rr="rnr 2> /dev/null"
alias rr="source ranger 2> /dev/null"
alias dd="ddgr --colorize always --reg it-it"
alias cat="batcat"
alias ..="cd .."
alias ....="cd ../.."
alias ipc="ip --color a"

View File

@ -1,6 +1,6 @@
ext css|.|md|conf|txt|sh = vim "$@"
ext css|md|conf|txt|sh = vim "$@"
ext ogv|mp4|avi|mkv|ogg = mpv "$@"
ext pdf = okular "$@"
ext pdf|epub = okular "$@"
ext png|jpg = feh "$@"
ext cb[zr] = qcomicbook "$@"
ext html = firefox-esr "$@"

View File

@ -19,4 +19,5 @@
0 9,15,20 * * * rsync -aPz ~/.config/rnr/ ~/Documenti/repos/mywiki/linux/rnr/
0 9,15,20 * * * rsync -aPz ~/.vimrc ~/Documenti/repos/mywiki/linux/vim/vimrc
0 9,15,20 * * * rsync -aPz ~/.xbindkeysrc /home/davide/Documenti/repos/mywiki/linux/xbindkeys/xbindkeysrc
0 9,15,20 * * * rsync -aPz ~/.tmux.conf /home/davide/Documenti/repos/mywiki/linux/tmux/tmux.conf
0 9,15,20 * * * crontab -l > ~/Documenti/repos/mywiki/linux/script/crontab

View File

@ -142,6 +142,12 @@ port 22
Modificare le impostazioni di `git`:
`git config --global --edit`
## Copiare la chiave pubblica in remoto
```bash
ssh-copy-id -i ~/.ssh/id_rsa.pub -p <port_number> <username>@<host>
```
## Collegamenti
- [https://linuxhint.com/enable-ssh-server-debian/](https://linuxhint.com/enable-ssh-server-debian/)

View File

@ -1,8 +1,14 @@
# Status bar
set -g status on
set -g default-terminal "screen-256color"
set -g status-style bg=default
set -g status on
set -g status-interval 1
set -g status-justify centre # Careful! It is spelled centre not center.
set -g status-style fg=white,bg=black
set -g status-justify centre
#set -g status-style fg=white,bg=black
# Highlight the current window.
setw -g window-status-current-style fg=white,bg=red,bright
# Reloading the tmux Config File
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

View File

@ -40,6 +40,8 @@ Questo creerà una nuova sessione tmux con una bella barra di stato completament
| `tmux rename-session -t 0 nome-sessione` | Per rinominare una sessione esistente |
| `C-b` + `?` | Mostra i comandi principali |
| `C-b` + `:` | Entrare in modalità comando |
| `tmux kill-session -t sess_1` | Per chiudere la sessione `sess_1` |
| `tmux kill-server` | Terminare il server tmux |
## Configurazione
@ -69,3 +71,4 @@ tmux può anche essere esteso con vari plugins.
- [https://jdhao.github.io/2018/09/30/tmux_settings_for_vim_users/](https://jdhao.github.io/2018/09/30/tmux_settings_for_vim_users/)
- [https://gist.github.com/xinshuoweng/ea62e1b19f30dbba60184a85cf04e9a1](https://gist.github.com/xinshuoweng/ea62e1b19f30dbba60184a85cf04e9a1)
- [https://gist.github.com/tsl0922/d79fc1f8097dde660b34](https://gist.github.com/tsl0922/d79fc1f8097dde660b34)
- [https://linuxhint.com/kill-tmux-sessions/](https://linuxhint.com/kill-tmux-sessions/)