mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-24 16:33:14 +01:00
Adds Tmux config part 1
This commit is contained in:
parent
6f21cf5cf5
commit
06d9678465
@ -11,6 +11,9 @@
|
||||
~/.vim: vim
|
||||
~/.vimrc: vim/vimrc
|
||||
|
||||
# Tmux
|
||||
~/.tmux.conf: tmux/tmux.conf
|
||||
|
||||
# bash
|
||||
~/.bash:
|
||||
force: true
|
||||
|
21
README.md
21
README.md
@ -46,10 +46,31 @@ To only install certain parts of the config, pass the `--only` flag to the insta
|
||||
- [git](https://git-scm.com/) - Version control system
|
||||
|
||||
Ubuntu: `sudo apt install -y zsh vim tmux ranger git`
|
||||
|
||||
Arch Linux: `sudo pacman -S zsh vim tmux ranger git`
|
||||
|
||||
Depending on your setup, `make`, `ctags` and `python3-pip` may also be needed
|
||||
|
||||
---
|
||||
## Details
|
||||
|
||||
|
||||
### Tmux
|
||||
|
||||
Fairly standard Tmux configuration, strongly based off Tmux-sensible. Configuration is defined in [`.tmux.conf`](https://github.com/Lissy93/dotfiles/blob/master/tmux/tmux.conf)
|
||||
|
||||
Tmux plugins are managed using [TMP](https://github.com/tmux-plugins/tpm) and defined in [`.tmux.conf`](https://github.com/Lissy93/dotfiles/blob/master/tmux/tmux.conf). To install them from GitHub, run `prefix` + <kbd>I</kbd> from within Tmux, and they will be cloned int `~/.tmux/plugins/`.
|
||||
|
||||
#### Plugins
|
||||
|
||||
- **[Tmux-sensible](https://github.com/tmux-plugins/tmux-sensible)**: `tmux-plugins/tmux-sensible` - General, sensible Tmux config
|
||||
- **[Tmux-continuum](https://github.com/tmux-plugins/tmux-continuum)**: `tmux-plugins/tmux-continuum` - Continuously saves and environment with automatic restore
|
||||
- **[Tmux-yank](https://github.com/tmux-plugins/tmux-yank)**: `tmux-plugins/tmux-yank` - Allows access to system clipboard
|
||||
- **[Tmux-prefix-highlight](https://github.com/tmux-plugins/tmux-prefix-highlight)**: `tmux-plugins/tmux-prefix-highlight` - Highlight Tmux prefix key when pressed
|
||||
- **[Tmux-online-status](https://github.com/tmux-plugins/tmux-online-status)**: `tmux-plugins/tmux-online-status` - Displays network status
|
||||
- **[Tmux-open](https://github.com/tmux-plugins/tmux-open)**: `tmux-plugins/tmux-open` - Bindings for quick opening selected path/ url
|
||||
- **[Tmux-mem-cpu-load](https://github.com/thewtex/tmux-mem-cpu-load)**: `thewtex/tmux-mem-cpu-load` - Shows system resources
|
||||
|
||||
### Vim
|
||||
|
||||
The entry point for the Vim config is the [`vimrc`](https://github.com/Lissy93/dotfiles/blob/master/vim/vimrc), but the main editor settings are defined in [`vim/editor.vim`](https://github.com/Lissy93/dotfiles/blob/master/vim/editor.vim)
|
||||
|
30
tmux/tmux.conf
Normal file
30
tmux/tmux.conf
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
# Import Tmux plugins using TMP
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||
set -g @plugin 'tmux-plugins/tmux-online-status'
|
||||
set -g @plugin 'tmux-plugins/tmux-open'
|
||||
set -g @plugin 'thewtex/tmux-mem-cpu-load'
|
||||
set -g @plugin 'tmux-plugins/tmux-open'
|
||||
|
||||
# Automatically restore session
|
||||
set -g @continuum-restore 'on'
|
||||
|
||||
# Configure Tmux-prefix-highlight
|
||||
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
|
||||
|
||||
# Show current internet status
|
||||
set -g status-right "Online: #{online_status} | %a %h-%d %H:%M "
|
||||
|
||||
# Show system resource usage
|
||||
set -g status-right "#[fg=green]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --colors --powerline-right --interval 2)#[default]"
|
||||
|
||||
# Use DDG as the default search engine (for Tmux-open)
|
||||
set -g @open-S 'https://www.duckduckgo.com/'
|
||||
|
||||
# Initialize Tmux plugin manager
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
Loading…
Reference in New Issue
Block a user