mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: comply with new naming for zsh config
This commit is contained in:
parent
2869069ca9
commit
1e18621bac
1 changed files with 29 additions and 23 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
{ hostname, config, pkgs, host, ...}:
|
{
|
||||||
|
hostname,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
host,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
|
|
@ -27,7 +33,7 @@
|
||||||
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE = 1;
|
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
initExtra = ''
|
initContent = ''
|
||||||
autoload -U add-zsh-hook
|
autoload -U add-zsh-hook
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
|
|
@ -40,7 +46,7 @@
|
||||||
autoload edit-command-line
|
autoload edit-command-line
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey '^Xe' edit-command-line
|
bindkey '^Xe' edit-command-line
|
||||||
|
|
||||||
# History stuff
|
# History stuff
|
||||||
setopt append_history
|
setopt append_history
|
||||||
setopt inc_append_history
|
setopt inc_append_history
|
||||||
|
|
@ -48,7 +54,7 @@
|
||||||
setopt extended_history
|
setopt extended_history
|
||||||
setopt hist_reduce_blanks
|
setopt hist_reduce_blanks
|
||||||
setopt hist_ignore_space
|
setopt hist_ignore_space
|
||||||
|
|
||||||
# Disable annoying beep
|
# Disable annoying beep
|
||||||
setopt no_beep
|
setopt no_beep
|
||||||
# Fix comments
|
# Fix comments
|
||||||
|
|
@ -66,7 +72,7 @@
|
||||||
zle backward-delete-word
|
zle backward-delete-word
|
||||||
}
|
}
|
||||||
zle -N backward-delete-word-but-better
|
zle -N backward-delete-word-but-better
|
||||||
|
|
||||||
bindkey '\e^?' backward-delete-word-but-better
|
bindkey '\e^?' backward-delete-word-but-better
|
||||||
|
|
||||||
# Completions
|
# Completions
|
||||||
|
|
@ -116,27 +122,27 @@
|
||||||
zsh-abbr = {
|
zsh-abbr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
abbreviations = {
|
abbreviations = {
|
||||||
mkdir="mkdir -p";
|
mkdir = "mkdir -p";
|
||||||
vim="nvim";
|
vim = "nvim";
|
||||||
v="nvim";
|
v = "nvim";
|
||||||
vi="nvim";
|
vi = "nvim";
|
||||||
nv="nvim";
|
nv = "nvim";
|
||||||
nvi="nvim";
|
nvi = "nvim";
|
||||||
gc="git clone";
|
gc = "git clone";
|
||||||
ga="git add .";
|
ga = "git add .";
|
||||||
gcm="git commit -m";
|
gcm = "git commit -m";
|
||||||
gph="git push -u origin main";
|
gph = "git push -u origin main";
|
||||||
g="git";
|
g = "git";
|
||||||
|
|
||||||
calc="eva";
|
calc = "eva";
|
||||||
wikipedia="wikit";
|
wikipedia = "wikit";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# setOptions = [
|
# setOptions = [
|
||||||
# # Corrections
|
# # Corrections
|
||||||
# "CORRECT"
|
# "CORRECT"
|
||||||
#
|
#
|
||||||
# # History stuff
|
# # History stuff
|
||||||
# "APPEND_HISTORY"
|
# "APPEND_HISTORY"
|
||||||
# "INC_APPEND_HOSTORY"
|
# "INC_APPEND_HOSTORY"
|
||||||
|
|
@ -144,7 +150,7 @@
|
||||||
# "EXTENDED_HISTORY"
|
# "EXTENDED_HISTORY"
|
||||||
# "HIST_REDUCT_BLANKS"
|
# "HIST_REDUCT_BLANKS"
|
||||||
# "HIST_IGNORE_SPACE"
|
# "HIST_IGNORE_SPACE"
|
||||||
#
|
#
|
||||||
# # Disable annoying beep
|
# # Disable annoying beep
|
||||||
# "NO_BEEP"
|
# "NO_BEEP"
|
||||||
# # Fix comments
|
# # Fix comments
|
||||||
|
|
@ -202,9 +208,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
zoxide = {
|
zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue