Restructure for symlink
This change makes it easier to recursively copy these config files into a real home directory and also gets rid of empty folders
This commit is contained in:
parent
d9d326eaa1
commit
9a6bfc1daf
111 changed files with 560 additions and 2114 deletions
28
slackware/.config/fish/conf.d/nvm.fish
Normal file
28
slackware/.config/fish/conf.d/nvm.fish
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
function _nvm_install --on-event nvm_install
|
||||
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
||||
set --universal nvm_data $XDG_DATA_HOME/nvm
|
||||
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
||||
|
||||
test ! -d $nvm_data && command mkdir -p $nvm_data
|
||||
echo "Downloading the Node distribution index..." 2>/dev/null
|
||||
_nvm_index_update $nvm_mirror $nvm_data/.index
|
||||
end
|
||||
|
||||
function _nvm_update --on-event nvm_update
|
||||
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
||||
set --universal nvm_data $XDG_DATA_HOME/nvm
|
||||
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
||||
end
|
||||
|
||||
function _nvm_uninstall --on-event nvm_uninstall
|
||||
command rm -rf $nvm_data
|
||||
|
||||
set --query nvm_current_version && _nvm_version_deactivate $nvm_current_version
|
||||
|
||||
set --names | string replace --filter --regex -- "^nvm" "set --erase nvm" | source
|
||||
functions --erase (functions --all | string match --entire --regex -- "^_nvm_")
|
||||
end
|
||||
|
||||
if status is-interactive && set --query nvm_default_version && ! set --query nvm_current_version
|
||||
nvm use $nvm_default_version >/dev/null
|
||||
end
|
||||
7
slackware/.config/fish/conf.d/omf.fish
Normal file
7
slackware/.config/fish/conf.d/omf.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Path to Oh My Fish install.
|
||||
set -q XDG_DATA_HOME
|
||||
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
|
||||
or set -gx OMF_PATH "$HOME/.local/share/omf"
|
||||
|
||||
# Load Oh My Fish configuration.
|
||||
source $OMF_PATH/init.fish
|
||||
Loading…
Add table
Add a link
Reference in a new issue