Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
03a0d5bb
Unverified
Commit
03a0d5bb
authored
Aug 24, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(clipboard): load clipboard on usage
Closes #8827
parent
13a8e3d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
clipboard.zsh
lib/clipboard.zsh
+5
-5
No files found.
lib/clipboard.zsh
View file @
03a0d5bb
...
@@ -100,8 +100,8 @@ function detect-clipboard() {
...
@@ -100,8 +100,8 @@ function detect-clipboard() {
fi
fi
}
}
# Detect at startup. A non-zero exit here indicates that the dummy clipboards were set,
function
clipcopy clippaste
{
# which is not really an error. If the user calls them, they will attempt to redetect
unfunction clipcopy clippaste
# (for example, perhaps the user has now installed xclip) and then either print an error
detect-clipboard
||
true
# let one retry
# or proceed successfully.
"
$0
"
"
$@
"
detect-clipboard
||
true
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment