split waybar into multiple files
This commit is contained in:
parent
53c7532351
commit
7cff7f09c3
29 changed files with 953 additions and 617 deletions
|
|
@ -13,7 +13,7 @@ in
|
|||
programs.bash = {
|
||||
# auto spawn fish if interactive
|
||||
interactiveShellInit = ''
|
||||
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
||||
if [[ ($(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING}) || -n "$IN_NIX_SHELL" ]]
|
||||
then
|
||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||
|
|
@ -26,8 +26,11 @@ in
|
|||
fzf # needed for reverse history search
|
||||
];
|
||||
programs.direnv.enableFishIntegration = true;
|
||||
programs.fish.generateCompletions = true;
|
||||
programs.fish.interactiveShellInit = ''
|
||||
set -g fish_key_bindings fish_vi_key_bindings
|
||||
function fish_greeting
|
||||
end
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue