Skip to main content
added 13 characters in body
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible  ?

e.g: the command pacman -Qtdq && sudo pacman -Rns $(pacman -Qtdq)

pacman -Qtdq && sudo pacman -Rns $(pacman -Qtdq) 

doesn't work ohin fish shell and I have no idea how to convert this

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible  ?

e.g: the command pacman -Qtdq && sudo pacman -Rns $(pacman -Qtdq) doesn't work oh fish shell and I have no idea how to convert this

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible?

e.g: the command

pacman -Qtdq && sudo pacman -Rns $(pacman -Qtdq) 

doesn't work in fish shell and I have no idea how to convert this

added 137 characters in body
Source Link
tjbrn
  • 203
  • 2
  • 6

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible ?

e.g: the command pacman -Qtdq && sudo pacman -Rns $(pacman -Qtdq) doesn't work oh fish shell and I have no idea how to convert this

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible ?

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible ?

e.g: the command pacman -Qtdq && sudo pacman -Rns $(pacman -Qtdq) doesn't work oh fish shell and I have no idea how to convert this

Source Link
tjbrn
  • 203
  • 2
  • 6

Execute bash command inside fish function

I decided to try fish shell, and I'm having trouble with some aliases. So I guess the painless way of doing the things would be executing the bash commands inside fish shell functions. Something like that :

function fish_function
start bash
    ... bash commands ... 
stop bash
end

Is that possible ?