Faster zshrc

This commit is contained in:
2019-02-11 17:40:33 +01:00
parent 23e40963ba
commit 740857f59b
8 changed files with 88 additions and 176 deletions

8
zsh/bin/copy Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env zsh
if [ $# -eq 0 ]; then
xclip -selection c
else
file_type=$(file -b --mime-type "$1")
xclip -selection c -t $file_type < $1
fi