Create the fish config dir before opening the fish config file
This commit is contained in:
parent
1a1cf51d5c
commit
2e7b14191a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue