diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..572c3b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# skip the plugins folder +plugins/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..85cecb2 --- /dev/null +++ b/.gitmodules @@ -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 diff --git a/README.md b/README.md index 1403b1a..e3d4337 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ modes/layouts: for using git - [helix](https://helix-editor.com): A postmodern text editor. Replaces 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, 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: ```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+\ I** to install the plugins. diff --git a/tmux.conf b/tmux.conf index 9ae3e9c..0a5a287 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,17 +1,22 @@ # TMUX configuration for using tmux as an IDE # This file contains a minimal configuration and diffent layout. + # enable the mouse mode set -g mouse on # Use xclop to copy and paste with the system clipboard 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 # List of plugins set -g @plugin 'tmux-plugins/tpm' 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) run '~/.tmux/plugins/tpm/tpm'