Skip to content
Snippets Groups Projects
Commit c817bfcc authored by Justin Hileman's avatar Justin Hileman
Browse files

Fix "missing argument" error when calling tab without args

parent dcb43ef0
No related merge requests found
......@@ -12,12 +12,14 @@ function tab -d 'Open the current directory (or any other directory) in a new ta
set -l cmd ''
set -l cdto $PWD
if test (count $argv) -gt 0 -a -d $argv[1]
pushd . >/dev/null
cd $argv[1]
set cdto $PWD
set -e argv[1]
popd >/dev/null
if test (count $argv) -gt 0
if test -d $argv[1]
pushd . >/dev/null
cd $argv[1]
set cdto $PWD
set -e argv[1]
popd >/dev/null
end
end
if test (count $argv) -gt 0
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment