added tmux config

This commit is contained in:
2024-02-06 12:17:57 +01:00
parent 7c37dd7587
commit d9fad43545
3 changed files with 64 additions and 25 deletions

26
.nanorc
View File

@ -1,13 +1,15 @@
set linenumbers set linenumbers
set autoindent set autoindent
set constantshow set constantshow
set tabsize 4 set tabsize 4
set zap set zap
set positionlog set positionlog
set softwrap set softwrap
# shortcuts # sane shortcuts
bind ^c copy main
bind ^C copy main bind ^v paste main
bind ^F whereis all bind ^z undo main
bind ^y redo main
bind ^F whereis all
bind ^S savefile main bind ^S savefile main

36
.tmux.conf Normal file
View File

@ -0,0 +1,36 @@
# remap prefix to ctrl+a
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using |<7C>(vertically) and - (horizontally)
bind / split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
unbind '"'
unbind %
# reload on r
bind r source-file ~/.tmux.conf \; display "Reloaded config!"
# enable mouse mode
set -g mouse on
# start numbering panes at 1
set -g base-index 1
setw -g pane-base-index 1
# design
set -g default-terminal "screen-256color"
setw -g clock-mode-color colour1
set -g visual-activity off
set -g status-position bottom
set -g status-justify left
set -g status-style "fg=color6"
set -g status-left ""
set -g status-right "%Y-%m-%d %H:%M"
set -g status-right-length 50
set -g status-left-length 10
setw -g window-status-current-style "fg=black bg=color6"
setw -g window-status-current-format " #I #W #F "
setw -g window-status-format " #I #[fg=colour7]#W #[fg=colour1]#F "

View File

@ -1,14 +1,15 @@
# `.nanorc` configuration file This repository contains various configuration files.
* `set linenumbers`: show line numbers ## Usage
* `set autoindent`: automatically indent lines
* `set constantshow`: constantly display cursor position ### `nano`
* `set tabsize 4`: tab size of 4 columns
* `set zap`: allow backspace and delete to erase entire marked region ```sh
* `set softwrap`: soft line wrapping curl https://gitea.paulaumann.com/paul/dotfiles/raw/branch/main/.nanorc > ~/.nanorc
```
## Usage
### `tmux`
```sh
curl https://gitea.paulaumann.com/paul/nanorc/raw/branch/master/.nanorc > ~/.nanorc ```sh
curl https://gitea.paulaumann.com/paul/dotfiles/raw/branch/main/.tmux.conf > ~/.tmux.conf
``` ```