From 5f4ab37dd586cf01ac12135ab722f690efc31f04 Mon Sep 17 00:00:00 2001 From: Murat Yilmaz Date: Fri, 21 Jun 2019 10:15:10 +0200 Subject: [PATCH] Add zsh support for direnv --- beak.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beak.swift b/beak.swift index 75d82d0..67995f8 100644 --- a/beak.swift +++ b/beak.swift @@ -46,7 +46,7 @@ public func link() throws { for bashConfigFile in [".bash_profile", ".bashrc", ".profile"] { let bashConfigUrl = URL(fileURLWithPath: NSHomeDirectory()).appendingPathComponent(bashConfigFile) - let direnvLine = "eval \"$(direnv hook bash)\"" + let direnvLine = "eval \"$(direnv hook $SHELL)\"" if !FileManager.default.fileExists(atPath: bashConfigUrl.path) { FileManager.default.createFile(atPath: bashConfigUrl.path, contents: nil)