Skip to content

Commit

Permalink
Use shell instead of $SHELL in g:unite_source_vimshell_external_histo…
Browse files Browse the repository at this point in the history
…ry_path
  • Loading branch information
Shougo committed Feb 17, 2014
1 parent 248caa7 commit 5fdb988
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions autoload/unite/sources/vimshell_external_history.vim
@@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: vimshell_external_history.vim " FILE: vimshell_external_history.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 13 Jul 2013. " Last Modified: 17 Feb 2014.
" License: MIT license {{{ " License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining " Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the " a copy of this software and associated documentation files (the
Expand All @@ -26,8 +26,8 @@


" Variables "{{{ " Variables "{{{
call unite#util#set_default('g:unite_source_vimshell_external_history_path', call unite#util#set_default('g:unite_source_vimshell_external_history_path',
\ fnamemodify($SHELL, ':t') ==# 'zsh' ? expand('~/.zsh-history') : \ fnamemodify(&shell, ':t') ==# 'zsh' ? expand('~/.zsh-history') :
\ fnamemodify($SHELL, ':t') ==# 'bash' ? expand('~/.bash_history') : \ fnamemodify(&shell, ':t') ==# 'bash' ? expand('~/.bash_history') :
\ expand('~/.history') \ expand('~/.history')
\) \)
"}}} "}}}
Expand Down
2 changes: 1 addition & 1 deletion doc/vimshell.txt
Expand Up @@ -507,7 +507,7 @@ g:unite_source_vimshell_external_history_path
It is assignment of a history file that It is assignment of a history file that
|vimshell/external_history| source recognizes. |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* KEY MAPPINGS *vimshell-key-mappings*
Expand Down

0 comments on commit 5fdb988

Please sign in to comment.