commit 897e086e62e98c0082bc99438b0c4b72132cb356
parent c4b7f175e647420479ace612a84e2413b66d6457
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Mon, 10 Jan 2022 20:09:08 +0100
Generalize tmux config for other computers
- Add user and host to tmux bar
- Modify README to keep tmux config on servers
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -21,7 +21,7 @@ set -g status-style "fg=green,bg=default" # more discreet status bar
set -g message-style "fg=black,bg=green"
set -g window-status-current-style "fg=black,bg=green"
set -g window-status-last-style "underscore,italics"
-set -g status-right "" # get rid of right part of status bar
+set -g status-right "#(whoami) @ #h" # get rid of right part of status bar
# shortcuts
bind C-a copy-mode
diff --git a/README.md b/README.md
@@ -115,15 +115,15 @@ If you just want to use a subset of the files without wanting to create a new
branch (for example in case you want to use them on a server), you can use `git
update-index --skip-worktree file1 file2` to stop tracking files and then delete
them. For example, to only use the files under `.zshenv`, `.config/zsh`,
-`.config/git`, `.config/nvim` and `.local/bin/git-head-abbrev`, you could run
-the following:
+`.config/git`, `.config/nvim`, `.config/tmux` and `.local/bin/git-head-abbrev`,
+you could run the following:
```
git --git-dir=/root/.local/share/dotfiles --work-tree=/root ls-files | \
- sed '/^\.config\/\(zsh\|git\|nvim\)\|^\.zshenv\|^\.local\/bin\/git-head-abbrev/d' | \
+ sed '/^\.config\/\(zsh\|git\|nvim\|tmux\)\|^\.zshenv\|^\.local\/bin\/git-head-abbrev/d' | \
xargs git --git-dir=/root/.local/share/dotfiles --work-tree=/root update-index --skip-worktree
git --git-dir=/root/.local/share/dotfiles --work-tree=/root ls-files | \
- sed '/^\.config\/\(zsh\|git\|nvim\)\|^\.zshenv\|^\.local\/bin\/git-head-abbrev/d' | \
+ sed '/^\.config\/\(zsh\|git\|nvim\|tmux\)\|^\.zshenv\|^\.local\/bin\/git-head-abbrev/d' | \
xargs rm -f
```