Improve module loading
This commit is contained in:
parent
8059050aa9
commit
8dcc01d38b
24
.gitignore
vendored
24
.gitignore
vendored
@ -1,12 +1,18 @@
|
|||||||
|
# Machine-specific, dynamic, generated
|
||||||
fish_variables
|
fish_variables
|
||||||
test/
|
|
||||||
|
# Ignore machine-specific configs
|
||||||
|
conf.d/49_aliases_local.fish
|
||||||
|
conf.d/59_abbr_local.fish
|
||||||
|
conf.d/80_modules_local.fish
|
||||||
|
conf.d/90_local.fish
|
||||||
|
conf.d/local.d/
|
||||||
|
functions/local/
|
||||||
|
completions/local/
|
||||||
|
|
||||||
|
# Must be moved later
|
||||||
completions/alacritty.fish
|
completions/alacritty.fish
|
||||||
completions/adu.fish
|
completions/adu.fish
|
||||||
conf.d/49_aliases_mycompany.fish
|
|
||||||
conf.d/48_aliases_desktop.fish
|
# Scratchpad
|
||||||
conf.d/90_local.fish
|
test/
|
||||||
conf.d/90_desktop_startx.fish
|
|
||||||
functions/desktop/
|
|
||||||
functions/work/
|
|
||||||
completions/desktop/
|
|
||||||
completions/work/
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
# List of modules to load
|
|
||||||
|
|
||||||
set -g FISH_MODULES \
|
|
||||||
login_x11
|
|
||||||
|
|
||||||
for module in $FISH_MODULES
|
|
||||||
fish_enable_module $module
|
|
||||||
end
|
|
||||||
15
conf.d/81_modules.fish
Normal file
15
conf.d/81_modules.fish
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Load enabled modules
|
||||||
|
|
||||||
|
# Specify the list of modules to load in `conf.d/80_modules_local.fish`
|
||||||
|
# Example:
|
||||||
|
# set -g FISH_MODULES \
|
||||||
|
# login_x11 \
|
||||||
|
# media \
|
||||||
|
# proxy_mycompany
|
||||||
|
|
||||||
|
set -q FISH_MODULES
|
||||||
|
or return
|
||||||
|
|
||||||
|
for module in $FISH_MODULES
|
||||||
|
fish_enable_module $module
|
||||||
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user