amtoine / dotfiles

My personal archlinux config files.
GNU General Public License v3.0
21 stars 2 forks source link

the name of `helix` has changed #34

Closed amtoine closed 1 year ago

amtoine commented 1 year ago

after reinstalling my system today, i have now a problem with the helix editor

the name of the executable is helix and not hx anymore!

files to fix

╭───┬───────────────────────────────────╮
│ # │               file                │
├───┼───────────────────────────────────┤
│ 0 │ .bashrc                           │
│ 1 │ .config/git/config                │
│ 2 │ .config/nushell/config.nu         │
│ 3 │ .config/nushell/env.nu            │
│ 4 │ .config/nushell/lib/scripts/hx.nu │
╰───┴───────────────────────────────────╯

generated with

cfg lf
| lines
| each {|it|
  grep -H -w hx $it
}
| lines
| split column ":" file
| sort
| uniq
amtoine commented 1 year ago

actully it's more subtle than this :thinking:

helix was installed with pacman on bc75f53, i.e. the current main branch, and the name of the executable was helix

when i installed the goatfiles, bc75f53 was checked out and this package was installed and thus is breaks the things using hx :confused:

however, helix needs to be installed from source and then hx is the name of the executable!

maybe we'll need to add that to #35 as well? :yum:

EDIT

the commands are

git clone https://github.com/helix-editor/helix /tmp/helix
(
    cd /tmp/helix
    cargo install --path helix-term
)

and of course for now remove the old package with

pacman -Rns helix

and install the themes with

mkdir -p ~/.config/helix/themes
cp -r /tmp/helix/runtime/themes/*.toml ~/.config/helix/themes

i'm just not sure why i do not have full language support but that's a story for another day :relieved:

amtoine commented 1 year ago

and see https://github.com/helix-editor/helix/discussions/4938 for a complementary discussion about helix and its runtime/ :+1:

amtoine commented 1 year ago

conclusion

this has been fixed thanks to some tests and mainly by installing helix from the Arch repositories with pacman :+1:

:point_right: the name of the command is helix hx was for the "build from source" installation method :ok_hand: