Add basic functionality
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# skip the plugins folder
|
||||||
|
plugins/
|
||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "/home/jali/.config/tmux/plugins/tpm"]
|
||||||
|
path = /home/jali/.config/tmux/plugins/tpm
|
||||||
|
url = https://github.com/tmux-plugins/tpm
|
||||||
10
README.md
10
README.md
@@ -22,6 +22,8 @@ modes/layouts:
|
|||||||
for using git
|
for using git
|
||||||
- [helix](https://helix-editor.com): A postmodern text editor. Replaces
|
- [helix](https://helix-editor.com): A postmodern text editor. Replaces
|
||||||
vim/neovim.
|
vim/neovim.
|
||||||
|
- [xclip](https://github.com/astrand/xclip): A command line interface for the
|
||||||
|
system clipboard in X11/wayland
|
||||||
|
|
||||||
For some plugins, extra tools are required. These are optional, and only needed,
|
For some plugins, extra tools are required. These are optional, and only needed,
|
||||||
when the plugins are installed:
|
when the plugins are installed:
|
||||||
@@ -35,5 +37,11 @@ Before any plugins can be loaded, it is neccesary to install the plugin-manager
|
|||||||
itself. This has to be done manually, and can easily be done by using git:
|
itself. This has to be done manually, and can easily be done by using git:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
git submodule add https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Then, the `tmux.conf` file can be used. Make sure, when editing the file, that
|
||||||
|
the structure of the file is kept. It is mandatory, that the tpm command must
|
||||||
|
remain at the end of the file at all times for TPM to work properly!
|
||||||
|
|
||||||
|
After adding a plugin, press **Ctrl+\<prefix> I** to install the plugins.
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
# TMUX configuration for using tmux as an IDE
|
# TMUX configuration for using tmux as an IDE
|
||||||
# This file contains a minimal configuration and diffent layout.
|
# This file contains a minimal configuration and diffent layout.
|
||||||
|
|
||||||
|
|
||||||
# enable the mouse mode
|
# enable the mouse mode
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# Use xclop to copy and paste with the system clipboard
|
# Use xclop to copy and paste with the system clipboard
|
||||||
bind C-c run "tmux save-buffer - | xclip -i sel clip"
|
bind C-c run "tmux save-buffer - | xclip -i sel clip"
|
||||||
bind C-v run "tmux set-buffer ${xclip -o sel clip}; tmux paste-buffer"
|
bind C-v run "tmux set-buffer $(xclip -o sel clip); tmux paste-buffer"
|
||||||
|
|
||||||
|
# Use lazygit for version control.
|
||||||
|
bind-key g display-popup -d "#{pane_current_path}" -x C -y C -w 80% -h 80% -E 'lazygit'
|
||||||
|
|
||||||
# Configure the plugin manager
|
# Configure the plugin manager
|
||||||
# List of plugins
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|||||||
Reference in New Issue
Block a user