我在Mac上使用fish shell,我在使用Tmux和iTerm2。每当我打开tmux窗口和新会话时,我都想用快捷命令显示文本。有人能建议一下,如何配置Tmux,以便每当我打开一个新的会话时,它都会显示2-3行包含我在某处指定的文本?问候
发布于 2018-07-29 23:01:12
将fish_greeting变量设置为您想要的消息,或者定义一个名为fish_greeting的函数来打印消息。
例如:
set -U fish_greeting "Hello, new session.
Type help for help."或
function fish_greeting
echo "Hello, new session."
echo "Type help for help."
end
funcsave fish_greeting发布于 2018-07-27 13:21:30
您应该能够通过编写以下代码使其工作
echo "your message"在文件~/.config/fish/config.fish中
欲了解更多信息,请访问https://fishshell.com/docs/current/faq.html。
https://stackoverflow.com/questions/51550672
复制相似问题