+bucaran array.delete
parent
7c9d660f2c
commit
75ba7639a9
@ -0,0 +1,8 @@
|
||||
# Remove item from list. List must be the name of a global variable.
|
||||
# @params <item> <list>
|
||||
function array.delete
|
||||
set -l item $argv[1]
|
||||
if set -l index (contains -i -- $item $$argv[2])
|
||||
set -e $argv[2][$index]
|
||||
end
|
||||
end
|
@ -1,7 +0,0 @@
|
||||
set -l fish_tank /usr/local/share/fish-tank/tank.fish
|
||||
if not test -e $fish_tank
|
||||
echo 'error: fish-tank is required to run these tests (https://github.com/terlar/fish-tank)'
|
||||
exit 1
|
||||
end
|
||||
|
||||
source $fish_tank
|
Loading…
Reference in New Issue