Skip to content

Commit b2034f6

Browse files
authored
Merge pull request #165 from Mado13/fix-fish-shell-init
Fix Fish shell auto-switching on new tab/shell startup
2 parents 6526626 + 2c03e68 commit b2034f6

File tree

1 file changed

+2
-1
lines changed
  • crates/rv/src/commands/shell

1 file changed

+2
-1
lines changed

crates/rv/src/commands/shell/init.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ pub fn init(config: &Config, shell: Shell) -> Result<()> {
5151
"function _rv_autoload_hook --on-variable PWD --description 'Change Ruby version on directory change using rv'\n",
5252
" status --is-command-substitution; and return\n",
5353
" {} shell env fish | source\n",
54-
"end\n"
54+
"end\n",
55+
"_rv_autoload_hook\n"
5556
),
5657
config.current_exe
5758
);

0 commit comments

Comments
 (0)