unbind up arrow from atuin
This commit is contained in:
parent
11907ede0c
commit
08d4c0e771
|
@ -77,6 +77,10 @@
|
||||||
# i only use this as a login shell
|
# i only use this as a login shell
|
||||||
bash = {
|
bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
initExtra = ''
|
||||||
|
bind -x '"\C-r": __atuin_history'
|
||||||
|
export ATUIN_NOBIND=true
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -82,7 +82,6 @@ in {
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
depth = 32;
|
depth = 32;
|
||||||
inheritPixmap = true;
|
inheritPixmap = true;
|
||||||
# letterSpace = -1;
|
|
||||||
};
|
};
|
||||||
scroll.bar.enable = false;
|
scroll.bar.enable = false;
|
||||||
fonts = [
|
fonts = [
|
||||||
|
|
|
@ -14,6 +14,22 @@
|
||||||
shellAliases.se = "sudo -AE";
|
shellAliases.se = "sudo -AE";
|
||||||
# I dont want to remap the up key, so only map this, setting ATUIN_NOBIND to true
|
# I dont want to remap the up key, so only map this, setting ATUIN_NOBIND to true
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
up-line-or-local-history() {
|
||||||
|
zle set-local-history 1
|
||||||
|
zle up-line-or-history
|
||||||
|
zle set-local-history 0
|
||||||
|
}
|
||||||
|
zle -N up-line-or-local-history
|
||||||
|
down-line-or-local-history() {
|
||||||
|
zle set-local-history 1
|
||||||
|
zle down-line-or-history
|
||||||
|
zle set-local-history 0
|
||||||
|
}
|
||||||
|
zle -N down-line-or-local-history
|
||||||
|
bindkey '^[[A' up-line-or-local-history
|
||||||
|
bindkey '^[OA' up-line-or-local-history
|
||||||
|
bindkey '^[[B' down-line-or-local-history
|
||||||
|
bindkey '^[OB' down-line-or-local-history
|
||||||
bindkey '^r' _atuin_search_widget
|
bindkey '^r' _atuin_search_widget
|
||||||
'';
|
'';
|
||||||
localVariables = {
|
localVariables = {
|
||||||
|
|
Loading…
Reference in a new issue