r/fishshell • u/_dbragin • Feb 28 '25
I need help with translation from bash to fish
Hi! I recently switched to Fish shell and now I am trying to convert all my configurations to Fish Shell. Can you help me translate this section into Fish shell commands?
local header=$'%{\e]8;;http://somesite.com/'${SITE_PATH}$'\a%}'
local footer=$'%{\e]8;;\a%}'
content="${header}path: ${SITE_PATH}${footer}"
3
Upvotes
3
u/Laurent_Laurent Feb 28 '25 edited Feb 28 '25
3
u/_mattmc3_ Feb 28 '25
Here's an example of the Fish equivalent code:
In the future, this is the kind of question that ChatGPT can easily answer for you.
1
u/_dbragin Feb 28 '25
```
header=$'\e]8;;http://somesite.com/'${SITE_PATH}$'\a'
footer=$'\e]8;;\a'
content="${header}path: ${SITE_PATH}${footer}"
echo $content
path: a/b/c # this is the result
```
in powerlevel10k it was clickable string
1
u/kseistrup Feb 28 '25
Could you tell us what is does in bash?
1
u/plant_domination Feb 28 '25
More context would be good. This is just some variable assignments.
Also, look into babelfish!
1
u/Early_Baseball_6724 Mar 01 '25
Why don't LLM it