mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
use zsh
This commit is contained in:
parent
cd9c91b9bc
commit
fbe299a28c
16 changed files with 67 additions and 17 deletions
|
|
@ -49,7 +49,6 @@ in {
|
|||
end
|
||||
abbr --add ef edit-fzf
|
||||
'';
|
||||
# TODO: Add integraiton for bash, zsh
|
||||
programs.bash.bashrcExtra = editFzfPosix;
|
||||
programs.zsh.initContent = editFzfPosix;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,47 @@
|
|||
{config, pkgs, ...}: let
|
||||
aliases = import ./aliases.nix { pkgs = pkgs; };
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
aliases = import ./aliases.nix {pkgs = pkgs;};
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
zsh-fzf-tab
|
||||
];
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autocd = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
historySubstringSearch.enable = true;
|
||||
enableCompletion = true;
|
||||
dotDir = "${config.xdg.configHome}/zsh";
|
||||
shellAliases = aliases;
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
patterns = {
|
||||
"rm -rf *" = "fg=blue,bold,bg=red";
|
||||
};
|
||||
highlighters = [
|
||||
"main"
|
||||
"pattern"
|
||||
"brackets"
|
||||
"root"
|
||||
];
|
||||
};
|
||||
initContent = ''
|
||||
# Emacs Hybrid
|
||||
bindkey '^A' beginning-of-line
|
||||
bindkey '^E' end-of-line
|
||||
bindkey '^F' forward-char
|
||||
bindkey '^B' backward-char
|
||||
bindkey '^P' up-line-or-history
|
||||
bindkey '^N' down-line-or-history
|
||||
# bindkey '^R' history-incremental-search-backward # Use fzf
|
||||
bindkey '^K' kill-line
|
||||
|
||||
bindkey -M viins '^?' backward-delete-char
|
||||
bindkey -M viins '^H' backward-kill-word
|
||||
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
|
||||
'';
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@
|
|||
./packages/fonts.nix
|
||||
./packages/catppuccin.nix
|
||||
|
||||
# Shell
|
||||
./programs/shell/bash.nix
|
||||
./programs/shell/zsh.nix
|
||||
./programs/shell/fish.nix
|
||||
|
||||
# Personal Program
|
||||
./programs/chromium.nix
|
||||
./programs/firefox.nix
|
||||
|
|
@ -28,10 +33,6 @@
|
|||
./programs/libreoffice.nix
|
||||
./programs/nvim.nix
|
||||
|
||||
# Shell
|
||||
./programs/shell/bash.nix
|
||||
./programs/shell/zsh.nix
|
||||
./programs/shell/fish.nix
|
||||
|
||||
# Desktop Linux
|
||||
./programs/plasma.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue