andsens / homeshick

git dotfiles synchronizer written in bash
MIT License
2.11k stars 145 forks source link

Command 'string' not found... homeshick.fish #176

Closed Smok07 closed 6 years ago

Smok07 commented 6 years ago

Hello! Today I'm trying to create my first CASTLE, but I'm getting this message

Command 'string' not found...
in command substitution
    called on line 5 of file ~/.homesick/repos/homeshick/homeshick.fish

The 5 line contains: eval $HOMESHICK_DIR/bin/homeshick (string escape -- $argv)

Does this mean that I need to install some tools or packages?

Thanks!

ps: I can create CASTLE from bash, but not from fish

psliwka commented 6 years ago

string is fish's builtin: https://fishshell.com/docs/current/commands.html#string

andsens commented 6 years ago

This... seems weird. Are you sure you're in the right shell when invoking? I honestly don't know enough about fish to comment, so I'd very much like someone to chime in with a diagnosis. @herrbischoff maybe?

Smok07 commented 6 years ago

Thanks guys, I thought I needed to install something like string-tools, but I found that I need to update the fish to the latest version my fish is: fish, version 2.2.0

and to update, I needed to add a repository, here is instructions: https://launchpad.net/~fish-shell/+archive/ubuntu/release-2

I spent a few days searching for "string" thanks for help %)

herrbischoff commented 6 years ago

Good to see you were successful in troubleshooting this yourself. Indeed, everything below fish v2.5 will likely behave/break in unexpected ways. There have been major updates over time.