configure zsh and fix mpd
This commit is contained in:
parent
fb92731190
commit
cd8efd23f3
5 changed files with 45 additions and 25 deletions
29
home/programs/shell.nix
Normal file
29
home/programs/shell.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{pkgs, config, ...}: {
|
||||
|
||||
programs.starship.enable = true;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
dotDir = ".config/zsh";
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/zsh_history";
|
||||
};
|
||||
defaultKeymap = "vicmd";
|
||||
autocd = true;
|
||||
enableAutosuggestions = true;
|
||||
completionInit = ''
|
||||
autoload -U compinit && compinit
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
'';
|
||||
historySubstringSearch = {
|
||||
enable = true;
|
||||
searchUpKey = "^[[5~";
|
||||
searchDownKey = "^[[6~";
|
||||
};
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
home.shellAliases = {
|
||||
rm = "${pkgs.trash-cli}/bin/trash-put";
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue