Add support for lazygit, set colours and allow access to aichat.
This commit is contained in:
19
README.md
19
README.md
@@ -45,3 +45,22 @@ 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!
|
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.
|
After adding a plugin, press **Ctrl+\<prefix> I** to install the plugins.
|
||||||
|
|
||||||
|
## Basic usage
|
||||||
|
|
||||||
|
Independent from the layout you use, the basic usage is standard tmux operation.
|
||||||
|
You can use the tmux commands to split and control windows, and manage your
|
||||||
|
terminal window layoout. There are, however, some extra functions.
|
||||||
|
|
||||||
|
## Manage git
|
||||||
|
|
||||||
|
In order to manage your git repositories, without having to switch to a blank
|
||||||
|
terminal, press `Ctrl+<prefix> g`. This will open `lazygit` in a popup, that
|
||||||
|
overlays your current layoout. To close the window, all that is needed, is to
|
||||||
|
quit `lazygit` by pressing `q`.
|
||||||
|
|
||||||
|
## Open an ai chat window
|
||||||
|
|
||||||
|
To open a chat window to confer with your ai-bot in chatmode, you can easily
|
||||||
|
open a chatwindow to the left of your main window. To do so, press
|
||||||
|
`Ctrl+<prefix> a`. To close the window, press `Ctrl+d`.
|
||||||
|
|||||||
14
tmux.conf
14
tmux.conf
@@ -1,6 +1,17 @@
|
|||||||
# 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 default terminal colours
|
||||||
|
set -g default-terminal "${TERM}"
|
||||||
|
set -ag terminal-overrides ",${TERM}:Tc"
|
||||||
|
|
||||||
|
# set the background colours for the status bar.
|
||||||
|
set -g status-bg "#544788"
|
||||||
|
set -g status-fg white
|
||||||
|
|
||||||
|
# set matching colours to for the active and inactive pane borders.
|
||||||
|
set -g pane-border-style "fg=#544788"
|
||||||
|
set -g pane-active-border-style "fg=#8066b3"
|
||||||
|
|
||||||
# enable the mouse mode
|
# enable the mouse mode
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
@@ -12,6 +23,9 @@ bind C-v run "tmux set-buffer $(xclip -o sel clip); tmux paste-buffer"
|
|||||||
# Use lazygit for version control.
|
# Use lazygit for version control.
|
||||||
bind-key g display-popup -d "#{pane_current_path}" -x C -y C -w 80% -h 80% -E 'lazygit'
|
bind-key g display-popup -d "#{pane_current_path}" -x C -y C -w 80% -h 80% -E 'lazygit'
|
||||||
|
|
||||||
|
# open an ai chat window to the left of the main screen
|
||||||
|
bind-key a split-window -bh -p 20 -c "#{pane_current_path}" 'aichat-ng'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|||||||
Reference in New Issue
Block a user