mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-08-17 13:59:29 +02:00
Added class and os alternates
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
# copyfile plugin
|
||||
|
||||
Puts the contents of a file in your system clipboard so you can paste it anywhere.
|
||||
|
||||
To use, add `copyfile` to your plugins array:
|
||||
```
|
||||
plugins=(... copyfile)
|
||||
```
|
||||
|
||||
Then you can run the command `copyfile <filename>` to copy the file named `filename`.
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
# Copies the contents of a given file to the system or X Windows clipboard
|
||||
#
|
||||
# copyfile <file>
|
||||
function copyfile {
|
||||
emulate -L zsh
|
||||
clipcopy $1
|
||||
}
|
||||
Reference in New Issue
Block a user