mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Refactor config.fish to use functions moved to functions folder
This commit is contained in:
parent
b5e93105d6
commit
47a88f93d1
10 changed files with 125 additions and 121 deletions
15
.config/fish/functions/import_sources.fish
Normal file
15
.config/fish/functions/import_sources.fish
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
function import_sources -a uname -d 'Loads any additional fish files needed at init.'
|
||||
command -q kitty; and kitty + complete setup fish | source
|
||||
|
||||
switch "$uname"
|
||||
case 'Linux'
|
||||
test -e ~/.asdf/asdf.fish; and source ~/.asdf/asdf.fish
|
||||
case 'Darwin'
|
||||
command -q brew
|
||||
and test -e (brew --prefix asdf)/asdf.fish
|
||||
and source (brew --prefix asdf)/asdf.fish
|
||||
end
|
||||
|
||||
# The next line updates PATH for the Google Cloud SDK.
|
||||
# if test -f '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; source '/Users/m/Documents/google-cloud-sdk/path.fish.inc'; end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue