Santhosh T | 1 Nov 08:40 2014
Picon

Re: Does fish supports named directories as in zsh

Hi Greg,

the approach you suggested works, but not user friendly
autocompleting variables appends SPACE rather than "/"
i mean:

cd $my_d<TAB>

now it autocompletes as:

cd $my_dir<SPACE>

instead of

cd $my_dir/

thanks
santhosh



On Sat, Nov 1, 2014 at 6:35 AM, Greg Reagle <greg.reagle-ZfsNAMXw/7E@public.gmane.org> wrote:

On Fri, Oct 31, 2014, at 07:25 PM, Santhosh T wrote:
> zsh supports named directories as explained in
>
> http://blog.bytetouch.com/tag/named-directories/
>
> does fishshell has something equivalent?

I am just a fish novice, but here are my two cents.

I don't know if fish has that feature, but it could be done with
variables:
.    set -U my_dir /usr/local/share
    cd $my_dir/man/

--
http://www.fastmail.fm - Send your email first class


------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Santhosh T | 1 Nov 00:25 2014
Picon

Does fish supports named directories as in zsh

zsh supports named directories as explained in 


does fishshell has something equivalent?

- santhosh
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Santhosh T | 31 Oct 17:58 2014
Picon

invalid options are not highlighted in red

when i type "ls --unknownoption"

i am expected "--unknownoption" to be shown in red.

fish only showing wrong commands in red color, but not wrong options

i already did run "fish_update_completions"

I am using MAC

thanks
Santhosh

------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Santhosh T | 31 Oct 17:53 2014
Picon

ALT+Left and ALT+Right is not moving forward/backward in directory history

I am using mac

when i tried ALT+Left and ALT+Right, without any command, I dont see
current directory changing.

when i run dirs command, I noticed that it contains only current directory.


how to I do "setopt autopush" as in zsh

thanks
santhosh
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Tobias Mueller | 28 Oct 14:27 2014
Picon

Putting a series of commands in the background

Hi everyone.

I am intending to do something like this:

        sleep 10; and beep &

i.e. put a rather long running series of commands in the background.

With my fish 2.0.0, however, I cannot do that. The commands are not put in the background.

Is there a way for me to achieve the desired functionality?

Cheers,
  Tobi

------------------------------------------------------------------------------
Greg Reagle | 29 Oct 22:44 2014

submission for documentation: Brace Expansion: cartesian product or concatenation

To add to the Brace Expansion section:

When multiple brace expansions are separated by unescaped space, the result is their concatenation. 
Otherwise the result is their cartesian product.

By example:
    echo {a,b,c,d} {1,2,3,4}
yields concatenation
    a b c d 1 2 3 4
whereas
    echo {a,b,c,d},{1,2,3,4}
yields a cartesian product
    a,1 b,1 c,1 d,1 a,2 b,2 c,2 d,2 a,3 b,3 c,3 d,3 a,4 b,4 c,4 d,4
and
    echo {a,b,c}" "{1,2,3}
    echo {a,b,c}' '{1,2,3}
    echo {a,b,c}\ {1,2,3}
yield a cartesian product because the space is escaped
    a 1 b 1 c 1 a 2 b 2 c 2 a 3 b 3 c 3

This feature works on more than two adjacent brace expansions.  By example:
    echo {a,b,c}{1,2,3}{A,B,C}
yields
    a1A b1A c1A a2A b2A c2A a3A b3A c3A a1B b1B c1B a2B b2B c2B a3B b3B c3B a1C b1C c1C a2C b2C c2C a3C b3C c3C

------------------------------------------------------------------------------
Greg Reagle | 29 Oct 21:36 2014

submission for the FAQ: How do I group commands together?

Question: 
---------
How do I group commands together?

Answer:
-------
Use a begin/end block.  For example the Fish code

    begin; printf "hello" ; printf " world\n" ; end > greeting

is analagous to the Bourne Shell code

    { printf "hello" ; printf " world\n" ; } > greeting 

Run
    man begin
for more details.

------------------------------------------------------------------------------
Greg Reagle | 29 Oct 21:19 2014

submission for the FAQ: How do I run fish in a subshell

Question: 
---------
How do I run fish code in a subshell?

Answer:
-------
Call fish explicitly, for example
    fish -c 'echo %self'
or
    echo 'echo %self' | fish
or
    fish < fish_script_file

Keep in mind  that using parentheses (command substitution) does *not* start a subshell.  The 2 commands
    echo %self
and
    echo (echo %self)
produce the same result because fish does not fork to process command substitution.

------------------------------------------------------------------------------
V10lator | 26 Oct 14:20 2014
Picon

How to access the history from withing the prompt?

Hi,
As I'm running commands which take a long time to execute I would love to 
be notified when the command finished. For that i added this code to my 
fish_prompt:

	set -l last_status $status

	if set -q CMD_DURATION
		if not set -q DISPLAY
			wall "fish: Job $history[1] returned $last_status, took $CMD_DURATION"
		else
			notify-send -a "fish" "$history[1]" "Returned $last_status, took 
$CMD_DURATION"
		end
	end

But $history[1] accesses the command before the one that just exited.

Long story short: I'm searching a way to get the last entered command from 
within fish_prompt.

Thanks for reading,
Thomas

------------------------------------------------------------------------------
Stephan Monecke | 15 Oct 11:36 2014
Picon

No colors in directory listings


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey together,

I hope I'm right here with a question because I found no other place to
set it.

- --> Since some time, there is no color anymore (just gray) in the
output of `ls` (even though they are set in .dircolors) and there used
to be some.

I have no idea what caused this change but I spend several hours now on
finding it out. Do you have any ideas?

I'm using termite ("TERM xterm-termite" added to .dircolors) on arch.

Thanks in advance!
Stephan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJUPkAdAAoJEBDkK1GRK4Dn3fwP/iRHgmp/jW/8DE3BUPxqWlnK
u09UmdAEXpzs7uG66mdOltxeuTfNvIx6HyeSIKWk9IDAZY7Kn0ocVoCT8Ga2Vtue
EoGF5ueE4ItACAL7eeFUg4dObBrQMWQZ0yGdkQOzyibKKq2/ILRjF9Ira3X60PAe
qCJd2k2AgfJ8ZqHC20CFG6EpfomZ8tKog6323dgH9vbHamjMXgaEo6rxE/2YOPCE
SEqfb4XXzn40hmSDeepdo4rIHSFf0CAHiFbMNh4Fyxwz5k9OH4ihqR1K7pgDK09N
xyuqSmB9zGl1yEfMKBiPpKS4caDKxspIYfLRx0dy4C3VqVldP/MS/vlrRAoKzMU6
DjgSzyNj4Gc+BeYzNtRc5Y6bJlHe8MCST6tS6Bz9Z3UaDyizKhIqVICmjwvxB93l
hW/WFgDz+3gtziM0rybM7TBdJIzJtT5twsuuPU8+fzcSuUzksT0G/W+GvSRf+YkI
GnWG0a2LxzVpyOkrFHfA9PqKDQvGx9zi2mAoMMyBlbmuqhhGiA1ed5MeMyL5SsgK
xJXeVF6VRgC0uaKlIV8xjsBy1mpo2rtKApYIbnS+qQd97T8C2JnvGumTJh34etin
0r7Swf2pXR9qYYAnT0YM3aIlMTLT1z16VWTtzJOdkoVGmUIGKU9iuRqivCE9ub+0
cTtZSjoi5IscDbnEz4hD
=dWRa
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
David Carlos Manuelda | 10 Oct 14:42 2014
Picon

gpg-agent problem with global variable

I am trying to set GPG_AGENT_INFO as a global variable which is already
defined by (I guess gnome-keyring)

I have an script which only executes once in my xfce-session, like:

set -xU GPG_AGENT_INFO (gpg-agent -v --daemon | egrep -o
"=(.*);[[:space:]]" | sed -e 's/=//' | sed -e 's/;//')

and also even tried

set -xg GPG_AGENT_INFO (gpg-agent -v --daemon | egrep -o
"=(.*);[[:space:]]" | sed -e 's/=//' | sed -e 's/;//')

But does not matter, everytime I open a new fish session, I get
something like:

echo $GPG_AGENT_INFO
/run/user/1001/keyring/gpg 0 1

instead of something like
/tmp/gpg-1JaGYx/S.gpg-agent:2333:1

I really need a way for fish to export correctly that variable across
all fish sessions, any suggestion?

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk

Gmane