add command line string as $argv[1] for fish_title

This commit is contained in:
jianjun
2014-07-14 23:34:15 +08:00
committed by ridiculousfish
parent 556680cf5e
commit 87abcecca6
3 changed files with 13 additions and 6 deletions

View File

@@ -3251,7 +3251,7 @@ static int builtin_fg(parser_t &parser, wchar_t **argv)
const wcstring ft = tok_first(j->command_wcstr());
if (! ft.empty())
env_set(L"_", ft.c_str(), ENV_EXPORT);
reader_write_title();
reader_write_title(j->command_wcstr());
make_first(j);
job_set_flag(j, JOB_FOREGROUND, 1);