1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 06:08:35 +01:00

added test.fish

This commit is contained in:
eoli3n 2020-11-15 13:39:40 +01:00
parent e37efd5293
commit 46f8be776f
2 changed files with 20 additions and 0 deletions

@ -0,0 +1,17 @@
#!/usr/bin/fish
# base : https://github.com/fish-shell/fish-shell/issues/939#issuecomment-22058614
# upload image : up file.png
# upload piped data : cat file.txt | up
# upload clipboard : up
# validation : if filetype is txt then open vim to valid or edit
# catch url : middle clic to paste url
# If filename as argument
if isatty stdin
cat $argv
# Else piping data
else
cat -
end

@ -0,0 +1,3 @@
function up
~/bin/up $argv;
end