The general way is the following: function matlab set -lx SHELL /bin/bash command matlab $argv & end
Maxim On Mon, 30 Jul 2012 05:46:07 +0900, Kevin Ballard <[email protected]> wrote: > Wouldn't it be simpler to just use env? > > function matlab > env SHELL=/bin/bash matlab & > end > > -Kevin > > On Jul 29, 2012, at 5:24 AM, Victor Hugo <[email protected]> wrote: > >> Fish user Pedro (pedro...nior [at] gmail.com) found a solution. You >> need to put the following function on your ~/.config/fish/config.fish >> file: >> >> function matlab >> set old_shell $SHELL >> set SHELL /bin/bash >> command matlab & >> set SHELL $old_shell >> end >> >> This function sets the default shell as bash before calling matlab. >> After it is invoked, the function places fish as the default shell >> again. >> >> []'s >> Victor Hugo >> >> On Sun, Jun 17, 2012 at 12:20 AM, Victor Hugo <[email protected]> >> wrote: >> I have the same problem of Phil: >> >> This is probably silly, but I have issues with Matlab color control >> sequences when my default shell is Fish that I do not have when it is >> Bash. >> Matlab> ls >> =1B=1B[00m=1B[01;34m280=1B[00m/ >> =1B[35mjim-mail.txt=1B[00= >> m >> =1B[01;34mactivism=1B[00m/ =1B[00mkddresearch.org >> ML.URL=1B[00= >> m >> A screenshot is attached. A The listing should be: >> Matlab> ls >> =1B280/ =1Bjim-mail.txt=1B >> =1Bactivism/ kddresearch.org ML.URL=1B >> >> Is there a way to solve it? >> >> []'s >> Victor Hugo >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions >> will include endpoint security, mobile security and the latest in >> malware >> threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ >> Fish-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/fish-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
