how to update helix-editor on Ubuntu? #2069
-
I have Ubuntu so to install I do git pull
git reset --hard HEAD^ # reset the runtime folder (and all project with it)
cargo install --path helix-term
hx --grammar fetch
hx --grammar build
[[ -L ~/.config/helix/runtime && -d ~/.config/helix/runtime ]] || cp -r runtime ~/.config/helix/runtime # copy if the file is not symlink ). Is there better way to update? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A symlink from $ cd ~/src # say you check stuff out into ~/src
$ git clone [email protected]:helix-editor/helix.git
$ mkdir -p ~/.config/helix
$ pushd ~/.config/helix
$ ln -s ~/src/helix/runtime . # setup the symlink
$ popd
$ cargo install --path helix-term # initial installation Then when you'd like to update, $ cd ~/src/helix
$ git pull
$ cargo install --path helix-term Then you don't need to do anything with the runtime directory because of the symlink. |
Beta Was this translation helpful? Give feedback.
A symlink from
~/.config/helix/runtime
to the runtime directory in the source makes upgrades easier. For example if you checked the repository out like so:Then when you'd like to update,
Then you don't need to do anything with the runtime directory because of the symlink.