added tmux config
This commit is contained in:
8
.nanorc
8
.nanorc
@ -6,8 +6,10 @@ set zap
|
||||
set positionlog
|
||||
set softwrap
|
||||
|
||||
# shortcuts
|
||||
|
||||
bind ^C copy main
|
||||
# sane shortcuts
|
||||
bind ^c copy main
|
||||
bind ^v paste main
|
||||
bind ^z undo main
|
||||
bind ^y redo main
|
||||
bind ^F whereis all
|
||||
bind ^S savefile main
|
||||
36
.tmux.conf
Normal file
36
.tmux.conf
Normal 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 "
|
||||
19
README.md
19
README.md
@ -1,14 +1,15 @@
|
||||
# `.nanorc` configuration file
|
||||
|
||||
* `set linenumbers`: show line numbers
|
||||
* `set autoindent`: automatically indent lines
|
||||
* `set constantshow`: constantly display cursor position
|
||||
* `set tabsize 4`: tab size of 4 columns
|
||||
* `set zap`: allow backspace and delete to erase entire marked region
|
||||
* `set softwrap`: soft line wrapping
|
||||
This repository contains various configuration files.
|
||||
|
||||
## Usage
|
||||
|
||||
### `nano`
|
||||
|
||||
```sh
|
||||
curl https://gitea.paulaumann.com/paul/nanorc/raw/branch/master/.nanorc > ~/.nanorc
|
||||
curl https://gitea.paulaumann.com/paul/dotfiles/raw/branch/main/.nanorc > ~/.nanorc
|
||||
```
|
||||
|
||||
### `tmux`
|
||||
|
||||
```sh
|
||||
curl https://gitea.paulaumann.com/paul/dotfiles/raw/branch/main/.tmux.conf > ~/.tmux.conf
|
||||
```
|
||||
Reference in New Issue
Block a user