Ryan,

My mistake in my initial reply, you don’t use the $ in set. This works:

set -U -e fish_user_paths[3]

—Diego


> On Mar 2, 2015, at 11:17 AM, Ryan Burnett <[email protected]> wrote:
> 
> Hi Diego,
> 
> Thanks for your reply. When I:
> 
> set -e $fish_user_paths[1]
> 
> ...I get this error:
> 
> set: Erase needs a variable name
> 
> Next I tried:
> 
> set -e $fish_user_paths[/usr/local/php5]
> 
> ...and received the same error.
> 
> Any idea how I can remove the /usr/local/php5 path from my $fish_user_paths?
> 
> Thanks,
> 
> Ryan
> 
> 
> 
> On Sun, Mar 1, 2015 at 10:45 PM, Diego Zamboni <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi Ryan,
> 
> According to the documentation you can do:
> 
> set -e $fish_user_paths[X]
> 
> Where X is the element you want to delete (arrays start at 1 in fish).
> 
> See http://fishshell.com/docs/current/commands.html#set: 
> <http://fishshell.com/docs/current/commands.html#set:>
> 
> "In erase mode, if variable indices are specified, only the specified slices 
> of the array variable will be erased.”
> 
> —Diego
> 
> 
>> On Mar 1, 2015, at 4:10 PM, Ryan Burnett <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> I accidentally added a path to $fish_user_paths:
>> 
>> set -U fish_user_paths $fish_user_paths /usr/local/php5
>> 
>> How can I remove this /usr/local/php5 path?
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. 
>> http://goparallel.sourceforge.net/_______________________________________________
>>  
>> <http://goparallel.sourceforge.net/_______________________________________________>
>> Fish-users mailing list
>> [email protected] <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/fish-users 
>> <https://lists.sourceforge.net/lists/listinfo/fish-users>
> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to