0

This might be a very silly question, but how to use .zsh files?

For example, here is a gist system-wide-clipboard.zsh

Zsh copy & paste system wide for OS X, like in emacs

I do understand I can simply copy its contents to ~/.zshrc, but maybe it is possible to use this file directly, that is, to start Zsh with system-wide-clipboard.zsh and not with .zshrc? Or link this file from within .zshrc so that it will be loaded automatically?

jsx97
  • 181
  • 1
    "Or link this file from within .zshrc?" ? . /path/to/system-wide-clipboard.zsh? – muru Mar 05 '24 at 00:19
  • @muru I mean "to link this file from within .zshrc so that it will be loaded automatically". That is, you open Zsh, Zsh automatically loads .zshrc, and .zshrc automatically loads system-wide-clipboard.zsh. The same as source $VIM/foo.vim in your .vimrc. – jsx97 Mar 05 '24 at 00:27
  • 2
    ".zshrc automatically loads system-wide-clipboard.zsh" => that's what . /path/to/system-wide-clipboard.zsh will do (or source instead of ., if you prefer that) – muru Mar 05 '24 at 00:27

0 Answers0