Skip to content

Commit

Permalink
Merge pull request #78 from pascal-zarrad/feature/add-wayland-support
Browse files Browse the repository at this point in the history
Add support for wayland clipboard
  • Loading branch information
pascal-zarrad authored Mar 26, 2024
2 parents 904b6a2 + ceb81b1 commit 385e66b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ readonly DEPENDENCIES=(
"curl"
"imagemagick"
"xclip"
"wl-clipboard"
)

# Load functions for console read/write
Expand Down
11 changes: 11 additions & 0 deletions lib/plugin_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ function apply_plugin() {
fi
}

# Function that checks if zplug oh-my-zsh lib is loaded or not
# and then adds the lib to the .zshrc
#
# @param $1 The lib to add to the .zshrc
function apply_ohmyzsh_lib() {
zplug_lib="$1"
if ! grep -q "zplug \"lib/${zplug_lib}\", from:oh-my-zsh" "${ZSHRC_PATH}" ; then
write_zshrc "zplug \"lib/${zplug_lib}\", from:oh-my-zsh"
fi
}

# Function that checks if zplug oh-my-zsh plugin is loaded or not
# and then adds the plugin to the .zshrc
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
# Email : [email protected]
#==================================================================

apply_ohmyzsh_lib "clipboard"
apply_ohmyzsh_plugin "copypath"
apply_ohmyzsh_plugin "copybuffer"
apply_ohmyzsh_plugin "copyfile"

0 comments on commit 385e66b

Please sign in to comment.