gitk 無法在 tmux 內部運作

gitk 無法在 tmux 內部運作

我有一個奇怪的問題,gitk當我在會話中使用它時,它無法運行tmux。如果我gitk從運行tmux,我會得到:

Error in startup script: 58:102: execution error: An error of type -10810 has occurred. (-10810)
    while executing
"exec osascript -e [format {
    tell application "System Events"
        set frontmost of processes whose unix id is %d to true
    end te..."
invoked from within
"if {[tk windowingsystem] eq "aqua"} {
    exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes ..."
    (file "/usr/local/bin/gitk" line 12019)

但是,如果我在普通終端(否tmux)中運行它,它就會完美地工作。

我已經安裝tmuxgit使用了brew,並且在Mac OSX 10.10.1 上運行。tmux -v顯示 2.0 並git --version顯示 2.5.0。

知道為什麼會發生這種情況嗎?

答案1

您需要安裝/更新重新附加到使用者命名空間

如果您使用的是brew,則可以使用以下命令來執行此操作。

brew upgrade reattach-to-user-namespace

這與 osascript 有關

相關內容