Fix zshrc
diff --git a/flake.lock b/flake.lock
index b478fa0..4ea6158 100644
--- a/flake.lock
+++ b/flake.lock
@@ -37,6 +37,22 @@
"type": "github"
}
},
+ "fzf-tab": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1650015730,
+ "narHash": "sha256-ixUnuNtxxmiigeVjzuV5uG6rIBPY/1vdBZF2/Qv0Trs=",
+ "owner": "Aloxaf",
+ "repo": "fzf-tab",
+ "rev": "7e0eee64df6c7c81a57792674646b5feaf89f263",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Aloxaf",
+ "repo": "fzf-tab",
+ "type": "github"
+ }
+ },
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -162,6 +178,7 @@
"root": {
"inputs": {
"comma": "comma",
+ "fzf-tab": "fzf-tab",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
diff --git a/src/apps/personal/zsh.nix b/src/apps/personal/zsh.nix
index 4f2d622..ad18b7e 100644
--- a/src/apps/personal/zsh.nix
+++ b/src/apps/personal/zsh.nix
@@ -40,7 +40,7 @@
fi
function TRAPINT {
- print -n "%{$fg_bold[red]%}^C%{$fg_no_bold[default]%}"
+ print -n "$fg_bold[red]^C$fg_no_bold[default]"
return $(( 128 + $1 ))
}
@@ -49,7 +49,7 @@
# set descriptions format to enable group support
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
- zstyle ':completion:*' list-colors $\{(s.:.)LS_COLORS}
+ zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
# preview directory's content with exa when completing cd
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 -l --color=always $realpath'
# switch group using `,` and `.`