You are not logged in.
I have wrote a command, that works in bash, but won't in fish.
var=$(dmenu_path | dmenu); exec $var
How to rewrite it to fish shell?
Offline
Subshells in fish are started with just brackets, without the $, also, you set variables with the set command, instead of using =, it would become:
set var (dmenu_path | dmenu); exec $var
Offline
I've allready try this.
~> set var (dmenu_path | dmenu); exec $var
fish: Variables may not be used as commands. Instead, define a function like 'function var; xterm $argv; end'. See the help section for the
function command by typing 'help function'.
set var (dmenu_path | dmenu); exec $var
^
Offline
.
Last edited by GGLucas (2022-06-24 08:12:40)
Offline