Use shortened path name of current working directory as the prompt
This commit is contained in:
parent
36289f9261
commit
ff406e34bf
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ function! s:files(dir, bang)
|
|||
let args.dir = dir
|
||||
let args.options .= ' --prompt '.shellescape(dir)
|
||||
else
|
||||
let args.options .= ' --prompt "./"'
|
||||
let args.options .= ' --prompt '.shellescape(pathshorten(getcwd())).'/'
|
||||
endif
|
||||
|
||||
call s:fzf(args, a:bang)
|
||||
|
|
Loading…
Add table
Reference in a new issue