mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 10:16:13 +01:00
zsh dots
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
{config, pkgs, ...}: let
|
{config, pkgs, ...}: let
|
||||||
cli = import ../aliases.nix;
|
cli = import ../aliases.nix;
|
||||||
in {
|
in {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# zsh-autosuggestions
|
||||||
|
# zsh-powerlevel10k
|
||||||
|
# zsh-prezto
|
||||||
|
];
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
@@ -10,9 +16,13 @@ in {
|
|||||||
|
|
||||||
shellAliases = cli.myAliases;
|
shellAliases = cli.myAliases;
|
||||||
|
|
||||||
|
syntaxHighlighting = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
'';
|
'';
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
@@ -22,18 +32,24 @@ in {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
zplug = {
|
# plug = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
plugins = [
|
# plugins = [
|
||||||
{ name = "zsh-users/zsh-autosuggestions"; }
|
# { name = "zsh-users/zsh-autosuggestions"; }
|
||||||
# { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
# ];
|
||||||
];
|
# };
|
||||||
};
|
|
||||||
|
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" ];
|
plugins = [ "git" "vi-mode" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prezto = {
|
||||||
|
enable = true;
|
||||||
|
tmux = {
|
||||||
|
autoStartLocal = true;
|
||||||
|
autoStartRemote = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,26 @@
|
|||||||
prefix = "C-Space";
|
prefix = "C-Space";
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
terminal = "screen-256color";
|
terminal = "screen-256color";
|
||||||
|
baseIndex = 1;
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
sensible
|
sensible
|
||||||
vim-tmux-navigator
|
vim-tmux-navigator
|
||||||
gruvbox
|
gruvbox
|
||||||
|
yank
|
||||||
];
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
# Shift Alt vim keys to switch windows
|
||||||
|
bind -n M-H previous-window
|
||||||
|
bind -n M-L next-window
|
||||||
|
|
||||||
|
# Vim like yank
|
||||||
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||||
|
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||||
|
|
||||||
|
# Open panes in current directory
|
||||||
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,11 +73,6 @@
|
|||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = (with pkgs; [
|
home.packages = (with pkgs; [
|
||||||
# > zsh stuff <
|
|
||||||
zsh
|
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-powerlevel10k
|
|
||||||
|
|
||||||
# > graphics <
|
# > graphics <
|
||||||
tuxpaint
|
tuxpaint
|
||||||
krita
|
krita
|
||||||
|
|||||||
Reference in New Issue
Block a user