mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds more zsh things
This commit is contained in:
parent
ee59ff3f3b
commit
0fa2dd54dc
1 changed files with 24 additions and 10 deletions
|
|
@ -11,6 +11,18 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
autocd = true;
|
autocd = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting = {
|
||||||
|
enable = true;
|
||||||
|
highlighters = [
|
||||||
|
"main"
|
||||||
|
"brackets"
|
||||||
|
"pattern"
|
||||||
|
"regexp"
|
||||||
|
"cursor"
|
||||||
|
"root"
|
||||||
|
"line"
|
||||||
|
];
|
||||||
|
};
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
# enableGlobalCompInit = true; # Should be a thing according to NixOS options but is not a thing?
|
# enableGlobalCompInit = true; # Should be a thing according to NixOS options but is not a thing?
|
||||||
|
|
||||||
|
|
@ -137,6 +149,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
abbreviations = {
|
abbreviations = {
|
||||||
mkdir = "mkdir -p";
|
mkdir = "mkdir -p";
|
||||||
|
mv = "mv --interactive";
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
|
|
@ -191,6 +204,7 @@
|
||||||
sxiv = "nsxiv";
|
sxiv = "nsxiv";
|
||||||
enby = "man";
|
enby = "man";
|
||||||
woman = "man";
|
woman = "man";
|
||||||
|
mkcd = "mkdir $1 && cd $1";
|
||||||
|
|
||||||
# NixOS
|
# NixOS
|
||||||
ns = "nix-shell --run zsh";
|
ns = "nix-shell --run zsh";
|
||||||
|
|
@ -202,16 +216,16 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
{
|
#{
|
||||||
name = "zsh-syntax-highlighting";
|
# name = "zsh-syntax-highlighting";
|
||||||
src = fetchFromGitHub {
|
# src = fetchFromGitHub {
|
||||||
owner = "zsh-users";
|
# owner = "zsh-users";
|
||||||
repo = "zsh-syntax-highlighting";
|
# repo = "zsh-syntax-highlighting";
|
||||||
rev = "0.6.0";
|
# rev = "0.6.0";
|
||||||
sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4";
|
# sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4";
|
||||||
};
|
# };
|
||||||
file = "zsh-syntax-highlighting.zsh";
|
# file = "zsh-syntax-highlighting.zsh";
|
||||||
}
|
#}
|
||||||
{
|
{
|
||||||
name = "zsh-autopair";
|
name = "zsh-autopair";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue