commit to nix a little more; removes redundent or useless directories and moves tmux configuration into nix folder
This commit is contained in:
parent
9c8ac7dae8
commit
0b1e2bc1c5
31 changed files with 9 additions and 1158 deletions
10
nix/home.nix
10
nix/home.nix
|
|
@ -5,7 +5,6 @@ with lib;
|
|||
{
|
||||
home.packages = with pkgs; [
|
||||
htop
|
||||
tmuxinator
|
||||
ripgrep
|
||||
ranger
|
||||
nox
|
||||
|
|
@ -29,6 +28,7 @@ with lib;
|
|||
|
||||
initExtra = mkForce (''
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels:$NIX_PATH
|
||||
export EDITOR=vim
|
||||
|
||||
source $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||
source $HOME/.nix-profile/share/fzf/key-bindings.zsh
|
||||
|
|
@ -46,6 +46,7 @@ with lib;
|
|||
plugins = [
|
||||
"git"
|
||||
"z"
|
||||
"sudo"
|
||||
"nix-shell"
|
||||
"tmuxinator"
|
||||
];
|
||||
|
|
@ -59,6 +60,9 @@ with lib;
|
|||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
tmuxinator = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.fzf = {
|
||||
|
|
@ -69,4 +73,8 @@ with lib;
|
|||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.file.".tmux.conf" = {
|
||||
source = ./tmux/tmux.conf;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
47
nix/tmux/tmux.conf
Normal file
47
nix/tmux/tmux.conf
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# reload tmux conf
|
||||
unbind r
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
bind-key C-a last-window
|
||||
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# faster escape recognition
|
||||
set-option -sg escape-time 50
|
||||
|
||||
# number tabs starting at 1
|
||||
set-option -g base-index 1
|
||||
|
||||
set-option -g default-terminal screen-256color
|
||||
|
||||
set-option -g default-shell /bin/zsh
|
||||
|
||||
# STATUS BAR
|
||||
set-option -g status-bg colour234 # light gray bg
|
||||
set-option -g status-fg colour255 # black text
|
||||
set-option -g status-left-bg default # match
|
||||
set-option -g status-left-fg colour74 # light blue
|
||||
|
||||
setw -g window-status-current-format "#[fg=white,bold]#[bg=cyan][#I:#W]"
|
||||
set -g pane-active-border-fg green
|
||||
|
||||
# xterm title
|
||||
set-option -g set-titles on
|
||||
set-option -g set-titles-string '[#S:#I #H] #W'
|
||||
|
||||
# mouse mode
|
||||
set -g mouse-utf8 on
|
||||
set -g mouse on
|
||||
|
||||
# clipboard
|
||||
set -g set-clipboard off
|
||||
|
||||
# big scrollback
|
||||
set -g history-limit 10240
|
||||
|
||||
# smart pane switching with awareness of vim splits
|
||||
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
|
||||
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
|
||||
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
|
||||
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
|
||||
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
|
||||
Loading…
Add table
Add a link
Reference in a new issue