non important commit
This commit is contained in:
parent
dfac501d3d
commit
ea48fbc85f
2 changed files with 5 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
if "ZELLIJ" in $env == false {
|
if not ("ZELLIJ" in $env) {
|
||||||
zellij
|
zellij
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
@ -22,7 +22,7 @@ def --env fzf-cd [] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def --env fzf-nvim [] {
|
def --env fzf-edit [] {
|
||||||
let file = (fd -t f -L . | fzf --reverse --height 40% --border rounded --preview=("bat -p -P --color always {}") --preview-window=border-left)
|
let file = (fd -t f -L . | fzf --reverse --height 40% --border rounded --preview=("bat -p -P --color always {}") --preview-window=border-left)
|
||||||
if $file != null and $file != "" {
|
if $file != null and $file != "" {
|
||||||
^$env.EDITOR $file
|
^$env.EDITOR $file
|
||||||
|
|
@ -38,7 +38,7 @@ $env.config.keybindings = ($env.config.keybindings | append {
|
||||||
})
|
})
|
||||||
|
|
||||||
$env.config.keybindings = ($env.config.keybindings | append {
|
$env.config.keybindings = ($env.config.keybindings | append {
|
||||||
name: "fzf-nvim"
|
name: "fzf-edit"
|
||||||
modifier: "control"
|
modifier: "control"
|
||||||
keycode: "char_e"
|
keycode: "char_e"
|
||||||
mode: "emacs"
|
mode: "emacs"
|
||||||
|
|
|
||||||
|
|
@ -50,30 +50,21 @@
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
enableTransience = true;
|
enableTransience = true;
|
||||||
settings = {
|
settings = {
|
||||||
format = "\${custom.shell_nix}\${custom.shell_normal} $directory\n$character\n";
|
format = "\${custom.shell_nix}\${custom.shell_normal}$directory\n$character";
|
||||||
|
|
||||||
# Prompt character — nix-shell pink on error doubles as a hint,
|
|
||||||
# but full conditional colouring isn't possible in the character module.
|
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[~>](#92D4FE)";
|
success_symbol = "[~>](#92D4FE)";
|
||||||
error_symbol = "[~>](#D81E5B)";
|
error_symbol = "[~>](#D81E5B)";
|
||||||
};
|
format = "$symbol ";
|
||||||
|
|
||||||
# Transient prompt (static colour — Starship can't conditionally
|
|
||||||
# change it based on env vars without a full custom module)
|
|
||||||
transient_prompt = {
|
|
||||||
format = "[~> ](#92D4FE)";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = {
|
directory = {
|
||||||
# Leading icon + path + powerline closing arrow
|
|
||||||
format = "[ $path ](bg:#303C68 fg:white)[](fg:#303C68)";
|
format = "[ $path ](bg:#303C68 fg:white)[](fg:#303C68)";
|
||||||
truncation_length = 1;
|
truncation_length = 1;
|
||||||
truncate_to_repo = false;
|
truncate_to_repo = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
# Shown only inside a nix-shell
|
|
||||||
shell_nix = {
|
shell_nix = {
|
||||||
description = "Nix shell indicator";
|
description = "Nix shell indicator";
|
||||||
command = "echo";
|
command = "echo";
|
||||||
|
|
@ -81,8 +72,6 @@
|
||||||
format = "[ nix-shell ](bg:#D81E5B fg:white)[](fg:#D81E5B)";
|
format = "[ nix-shell ](bg:#D81E5B fg:white)[](fg:#D81E5B)";
|
||||||
shell = ["bash" "--noprofile" "--norc"];
|
shell = ["bash" "--noprofile" "--norc"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Shown when NOT in a nix-shell
|
|
||||||
shell_normal = {
|
shell_normal = {
|
||||||
description = "Current shell indicator";
|
description = "Current shell indicator";
|
||||||
command = "echo";
|
command = "echo";
|
||||||
|
|
@ -93,7 +82,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue