Re: [Fish-users] evaluating $COLUMNS in a loop

2013-09-18 Thread ridiculous_fish
On Sep 17, 2013, at 9:44 PM, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: On Wed, Sep 18, 2013 at 05:00:09AM +0200, Martin Bähr wrote: clear while true echo \e\[H for i in (ls -tr) du -sh $i end | tail -20 | sed -e 's/^/'\e'\[K/' | cut -c -(math $COLUMNS - 2)

Re: [Fish-users] evaluating $COLUMNS in a loop

2013-09-18 Thread Martin Bähr
On Wed, Sep 18, 2013 at 12:15:59PM -0700, ridiculous_fish wrote: one minor issue i still have is that in the above $COLUMNS appears to be evaluated only once. i'd like it to be reevaluated every time. is there a way to do that? Try using 'tput cols' to get the terminal width instead.

Re: [Fish-users] evaluating $COLUMNS in a loop

2013-09-18 Thread David Adam
On Thu, 19 Sep 2013, Martin Bähr wrote: On Wed, Sep 18, 2013 at 12:15:59PM -0700, ridiculous_fish wrote: one minor issue i still have is that in the above $COLUMNS appears to be evaluated only once. i'd like it to be reevaluated every time. is there a way to do that? Try using

[Fish-users] Meaning of message when exiting fish-shell with background jobs running

2013-09-18 Thread Mandeep Sandhu
If I start a program in the background mode (like ./prog ) and exit the shell (Ctrl+D), I see the following message: There are stopped jobs. A second attempt to exit will enforce their termination. If I exit again, immediately, it'll quit the shell. However, the above message made me think that