bash, direnv
This commit is contained in:
@@ -31,6 +31,18 @@ in
|
||||
pkgs.gdu
|
||||
pkgs.rmlint
|
||||
|
||||
pkgs.binutils # for objdump, strings, etc.
|
||||
pkgs.gnumake # for make
|
||||
pkgs.tokei # for code statistics
|
||||
|
||||
pkgs.man-pages
|
||||
pkgs.man-pages-posix
|
||||
pkgs.dos2unix
|
||||
|
||||
pkgs.whois
|
||||
pkgs.dnsutils
|
||||
pkgs.aria2
|
||||
|
||||
pkgs.jq
|
||||
pkgs.yq
|
||||
pkgs.bc
|
||||
@@ -38,6 +50,8 @@ in
|
||||
pkgs.vimv
|
||||
|
||||
pkgs.pciutils # for lspci
|
||||
|
||||
pkgs.tmux
|
||||
]
|
||||
++ lib.optionals (!isDarwin) [
|
||||
pkgs.usbutils # for lsusb
|
||||
@@ -102,6 +116,9 @@ in
|
||||
ls = "${pkgs.coreutils}/bin/ls --color=auto --time-style=long-iso";
|
||||
ll = "${pkgs.coreutils}/bin/ls --color=auto --time-style=long-iso -l";
|
||||
la = "${pkgs.coreutils}/bin/ls --color=auto --time-style=long-iso --almost-all -l";
|
||||
|
||||
o = "${pkgs.xdg-open}/bin/xdg-open";
|
||||
ns = "nix-shell --run zsh";
|
||||
}
|
||||
// (
|
||||
if isDarwin then
|
||||
@@ -117,4 +134,41 @@ in
|
||||
uj = "${pkgs.systemd}/bin/journalctl --user";
|
||||
}
|
||||
);
|
||||
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
keyMode = "vi";
|
||||
clock24 = true;
|
||||
terminal = "screen-256color";
|
||||
baseIndex = 1;
|
||||
aggressiveResize = true;
|
||||
escapeTime = 50;
|
||||
historyLimit = 7000;
|
||||
shortcut = "b";
|
||||
extraConfig = ''
|
||||
set -g mouse on
|
||||
|
||||
unbind *
|
||||
bind * list-clients
|
||||
|
||||
# naVIgate
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# Use C-h and C-l to cycle through panes
|
||||
bind -r C-h select-window -t :-
|
||||
bind -r C-l select-window -t :+
|
||||
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
set -g status-interval 2
|
||||
set -g status-left-length 32
|
||||
set -g status-right-length 150
|
||||
|
||||
set -g status-position bottom
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user