Permalink
Browse files

Use shell instead of $SHELL in g:unite_source_vimshell_external_histo…

…ry_path
  • Loading branch information...
1 parent 248caa7 commit 5fdb988539a4d7707403a4ad5644ce514a122722 @Shougo committed Feb 17, 2014
Showing with 4 additions and 4 deletions.
  1. +3 −3 autoload/unite/sources/vimshell_external_history.vim
  2. +1 −1 doc/vimshell.txt
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: vimshell_external_history.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" 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')
\)
"}}}
View
@@ -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*

0 comments on commit 5fdb988

Please sign in to comment.