Skip to content

Commit

Permalink
Fix sluggish fish startup
Browse files Browse the repository at this point in the history
  • Loading branch information
OJFord committed Nov 13, 2020
1 parent 535830c commit d9d97c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
12 changes: 3 additions & 9 deletions fish/config.fish
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
bass source "$HOME/.profile"
bass source .profile
set --unexport fish_greeting
fish_vi_key_bindings

for config in (find "$XDG_CONFIG_HOME/" -name 'config.fish')
if [ "$config" != (status -f) ]
source $config
end
end

for function_d in (find "$XDG_CONFIG_HOME/" -name functions -type d)
for function_d in (find "$XDG_CONFIG_HOME/" -maxdepth 3 -name functions -type d)
set fish_function_path "$function_d" $fish_function_path
end

for completion_d in (find "$XDG_CONFIG_HOME/" -name completions -type d)
for completion_d in (find "$XDG_CONFIG_HOME/" -maxdepth 3 -name completions -type d)
set fish_completion_path "$completion_d" $fish_completion_path
end

Expand Down
14 changes: 8 additions & 6 deletions vagrant/.profile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
for f in "$XDG_CONFIG_HOME"/**/Vagrantfile; do
dir="$(dirname "$f")"
name="$(basename "$dir")"
cat > "$XDG_DATA_HOME/applications/$name.desktop" <<-EOF
[Desktop Entry]
Name=$name
Type=Application
Path=$dir
Exec=vagrant up

desktopf="$XDG_DATA_HOME/applications/$name.desktop"
test -f "$desktopf" || cat > "$desktopf" <<-EOF
[Desktop Entry]
Name=$name
Type=Application
Path=$dir
Exec=vagrant up
EOF
done

0 comments on commit d9d97c8

Please sign in to comment.