]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - zsh/os/rc.Darwin
992b68c6c2c6226ecf5ff5ce49236916841fcba8
[config/dotfiles.git] / zsh / os / rc.Darwin
1 # Zsh configuration file for darwin computers (Mac OS X).
2
3
4 # Store the current clipboard in CLIPBOARD before every command so it can be
5 # used in commands.
6 os_darwin_preexec() {
7     export CLIPBOARD="$(pbpaste)"
8 }
9 # Add the function as preexec hook.
10 add-zsh-hook preexec os_darwin_preexec
11
12 # Initialize CLIPBOARD so it's available for completion directly after
13 # startup.
14 CLIPBOARD=""
15 export CLIPBOARD
16
17 # Fetch current URL in clipboard with wget.
18 alias wnc='wget --no-proxy $CLIPBOARD'
19
20 # vim: ft=zsh