Skip to content

Commit

Permalink
Update script main func
Browse files Browse the repository at this point in the history
  • Loading branch information
wolandark committed Jun 25, 2024
1 parent 133f707 commit a2dc6e2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ _ARCHIVE_EXTRACTED_NAME="uctags-2024.06.20-linux-x86_64.tar.gz"
_COC_JSON="https://raw.githubusercontent.com/wolandark/wim/master/config/coc-settings.json"
_CHEAT_FILE="https://raw.githubusercontent.com/wolandark/wim/master/config/cheat40.txt"
_VIMRC_FILE="$_VIM_PATH/vimrc"
_VIMRC_FILE_REMOTE="https://raw.githubusercontent.com/wolandark/wim/master/wim-vim"
_VIMWIKI_PATH="$_VIM_PATH/vimwiki"
_VIMWIKI_INDEX="$_VIMWIKI_PATH/index.wiki"
_VIMWIKI_WIM="$_VIMWIKI_PATH/Wim.wiki"
Expand Down Expand Up @@ -39,6 +40,7 @@ getFiles()
{
curl -fLo "$_VIM_PATH"/cheat40.txt "$_CHEAT_FILE"
curl -fLo "$_VIM_PATH"/coc-settings.json "$_COC_JSON"
curl -fLo "$_VIMRC_FILE" "_$_VIMRC_FILE_REMOTE"
}

setupVimWiki()
Expand All @@ -48,4 +50,12 @@ setupVimWiki()
echo "[[Wim]]" > "$_VIMWIKI_PATH"/"$_VIMWIKI_INDEX"
}

vim
main()
{
backup
downloadCtags
getFiles
setupVimWiki
}

main

0 comments on commit a2dc6e2

Please sign in to comment.