Create the fish config dir before opening the fish config file

This commit is contained in:
Mo 2023-10-13 15:34:52 +02:00
parent 1a1cf51d5c
commit 2e7b14191a

View file

@ -1,10 +1,10 @@
#!/usr/bin/fish #!/usr/bin/fish
set -l user admin set -l user admin
set -l user_home /home/$user set -l fish_config_dir /home/$user/.config/fish
set -l user_config $user_home/.config
set -l fish_config $user_config/fish/config.fish mkdir -p $fish_config_dir
set -l fish_config $fish_config_dir/config.fish
runuser -u $user -- vi $fish_config runuser -u $user -- vi $fish_config
source $fish_config source $fish_config