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 <ryanjburn...@gmail.com> 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/_______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> 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
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to