diff --git a/.nanorc b/.nanorc index 4386b96..38a2184 100644 --- a/.nanorc +++ b/.nanorc @@ -1,13 +1,15 @@ -set linenumbers -set autoindent -set constantshow -set tabsize 4 -set zap -set positionlog -set softwrap - -# shortcuts - -bind ^C copy main -bind ^F whereis all +set linenumbers +set autoindent +set constantshow +set tabsize 4 +set zap +set positionlog +set softwrap + +# 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 \ No newline at end of file diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..e8bf4fe --- /dev/null +++ b/.tmux.conf @@ -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 |�(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 " \ No newline at end of file diff --git a/README.md b/README.md index 4dda59d..cf6cd7a 100644 --- a/README.md +++ b/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 - -## Usage - -```sh -curl https://gitea.paulaumann.com/paul/nanorc/raw/branch/master/.nanorc > ~/.nanorc +This repository contains various configuration files. + +## Usage + +### `nano` + +```sh +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 ``` \ No newline at end of file