Use shortened path name of current working directory as the prompt

This commit is contained in:
Junegunn Choi 2015-08-17 18:03:37 +09:00
parent 36289f9261
commit ff406e34bf

View file

@ -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)