Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the vim-specific shell instead of the environment variable #1616

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AdminXVII
Copy link

This will allow to use a specific shell for vim, without needing to change the $SHELL environment variable too.

The shell option is set by default to $SHELL, so it should not matter for users with standard setup.

The shell option is set by default to $SHELL, so it should not matter
for standard setup users.
This will allow to use a specific shell for vim, without needing to
change the $SHELL environment variable too
@@ -367,7 +367,7 @@ try
if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) && !s:is_win
let temps.source = s:fzf_tempname()
call writefile(s:wrap_cmds(split($FZF_DEFAULT_COMMAND, "\n")), temps.source)
let dict.source = (empty($SHELL) ? &shell : $SHELL).' '.fzf#shellescape(temps.source)
let dict.source = &shell.' '.fzf#shellescape(temps.source)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&shell is set to sh so there's no user customization here. You could set/unset $SHELL instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants