Remove basename from core library

The features added by this function are not used anywhere.

Fix #151
This commit is contained in:
Bruno Pinto 2015-11-03 14:02:39 +00:00
parent 0ac593a2bb
commit 5f77a5db12
2 changed files with 0 additions and 29 deletions

View File

@ -39,10 +39,6 @@ if available battery
end
```
#### `basename` _`<path> ...`_
Wrap basename so it can handle multiple arguments.
#### `refresh`
Replace the running instance of fishshell with a new one causing Oh My Fish to reload as well.

View File

@ -1,25 +0,0 @@
# SYNOPSIS
# basename <string> [suffix]
# basename [-s suffix] <string> [string...]
#
# OVERVIEW
# variable arguments basename
function basename -d "get the filename or directory part of a path"
if set -q argv[1]
set -l ext ""
switch $argv[1]
case -s
if test (count $argv) -gt 2
set ext $argv[2]
set argv $argv[3..-1]
else
echo "basename: Invalid number of arguments"
return 1
end
end
for path in $argv
command basename "$path" "$ext"
end
end
end