diff --git a/autoload/unite/sources/vimshell_external_history.vim b/autoload/unite/sources/vimshell_external_history.vim index e417f3d6..72f0df2c 100644 --- a/autoload/unite/sources/vimshell_external_history.vim +++ b/autoload/unite/sources/vimshell_external_history.vim @@ -1,7 +1,7 @@ "============================================================================= " FILE: vimshell_external_history.vim " AUTHOR: Shougo Matsushita -" Last Modified: 13 Jul 2013. +" Last Modified: 17 Feb 2014. " License: MIT license {{{ " Permission is hereby granted, free of charge, to any person obtaining " a copy of this software and associated documentation files (the @@ -26,8 +26,8 @@ " Variables "{{{ call unite#util#set_default('g:unite_source_vimshell_external_history_path', - \ fnamemodify($SHELL, ':t') ==# 'zsh' ? expand('~/.zsh-history') : - \ fnamemodify($SHELL, ':t') ==# 'bash' ? expand('~/.bash_history') : + \ fnamemodify(&shell, ':t') ==# 'zsh' ? expand('~/.zsh-history') : + \ fnamemodify(&shell, ':t') ==# 'bash' ? expand('~/.bash_history') : \ expand('~/.history') \) "}}} diff --git a/doc/vimshell.txt b/doc/vimshell.txt index 4ee4d1ce..b7d4a249 100644 --- a/doc/vimshell.txt +++ b/doc/vimshell.txt @@ -507,7 +507,7 @@ g:unite_source_vimshell_external_history_path It is assignment of a history file that |vimshell/external_history| source recognizes. - Default value is set to suit for $SHELL value. + Default value is set to suit for 'shell' value. ------------------------------------------------------------------------------ KEY MAPPINGS *vimshell-key-mappings*