mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
Don't test with one argument
[ci skip]
This commit is contained in:
parent
c776414674
commit
7eee158292
2 changed files with 3 additions and 2 deletions
|
@ -24,7 +24,7 @@ function __fish_adb_run_command -d 'Runs adb with any -s parameters already give
|
|||
set -l cmd (commandline -poc)
|
||||
set -e cmd[1]
|
||||
for i in $cmd
|
||||
if test $sopt_is_next
|
||||
if test -n "$sopt_is_next"
|
||||
set sopt -s $i
|
||||
break
|
||||
else
|
||||
|
|
|
@ -80,7 +80,8 @@ function fish_prompt
|
|||
set -l repo_branch $red(_repo_branch_name $repo_type)
|
||||
set repo_info "$blue $repo_type:($repo_branch$blue)"
|
||||
|
||||
if [ (_is_repo_dirty $repo_type) ]
|
||||
set -l dirty (_is_repo_dirty $repo_type)
|
||||
if test -n "$dirty"
|
||||
set -l dirty "$yellow ✗"
|
||||
set repo_info "$repo_info$dirty"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue