> On bash I used to prepend any command with 
> LC_ALL=pick_your_locale whenever I wanted the output in this or that 
> language, how do I achieve the same with Fish?

You were almost there! Use the env command:
env LC_ALL=pick_your_locale uptime


- ogham


On Thu, 28 Aug 2014, at 11:39, Martín Cigorraga wrote:
> Hi,
> 
> On bash I used to prepend any command with LC_ALL=pick_your_locale whenever I 
> wanted the output in this or that language, how do I achieve the same with 
> Fish?
> 
> My issue is that I set my locale to Finnish and top, following Finnish 
> conventions shows the load numbers using commas instead dots like 0,01, 0,08, 
> 0,14 instead 0.01, 0.08, 0,14. Problem is it is a bit more complicated to 
> parse this line from tmux when the numbers are represented using commas 
> instead dots ending with a messy result; instead 
> http://i.imgur.com/My5KyPt.png I end up with http://i.imgur.com/Ie4wRca.png 
> (full screenshot: http://i.imgur.com/87rjd6t.png) and that's why I would like 
> to run top with C or en_US locale.
> 
> How would be the best way to tackle this in Fish? I could use "bash -c 
> 'LC_ALL=C top'" but I feel that's really, really dirty...
> 
> Regards,
> -Martin
> ------------------------------------------------------------------------------
> Slashdot TV. 
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _________________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to