diff --git a/roles/fish/files/fish/cli/functions/up.fish b/roles/fish/files/fish/cli/functions/up.fish index de25c24..545bebe 100644 --- a/roles/fish/files/fish/cli/functions/up.fish +++ b/roles/fish/files/fish/cli/functions/up.fish @@ -1,3 +1,4 @@ function up - ~/bin/up $argv; + $HOME/bin/up ; end + diff --git a/roles/fish/files/fish/cli/functions/upfile.fish b/roles/fish/files/fish/cli/functions/upfile.fish deleted file mode 100644 index 39bb61d..0000000 --- a/roles/fish/files/fish/cli/functions/upfile.fish +++ /dev/null @@ -1,3 +0,0 @@ -function upfile - curl -F "file=@$argv" https://x0.at/ -end diff --git a/roles/fish/files/fish/cli/functions/uptest.fish b/roles/fish/files/fish/cli/functions/uptest.fish deleted file mode 100644 index de8c149..0000000 --- a/roles/fish/files/fish/cli/functions/uptest.fish +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 clipboard then open vim to valid or edit -# wq = ok, q = abort -# catch url : middle clic to paste url - - -function uptest --description 'Upload datas' - - # Set commands - set clipboard_copy wl-copy - set clipboard_paste wl-paste - - # If filename as argument - if isatty stdin - echo "Upload $argv" - # Upload img to x0.at because ix.io fails to set filetype - curl -F "file=@$argv" https://x0.at/ | read -l url - # Else pipe data - else - echo "Upload pipe" - # Upload text to ix - cat - | curl -F 'f:1=<-' 'http://ix.io' | read -l url - end - - echo $url - # Auto copy - #if which $clipboard_copy &> /dev/null - # echo $url | $clipboard_copy - #end -end diff --git a/roles/userbin/tasks/main.yml b/roles/userbin/tasks/main.yml index 022d687..566bb4c 100644 --- a/roles/userbin/tasks/main.yml +++ b/roles/userbin/tasks/main.yml @@ -6,7 +6,7 @@ - name: install ix.io up in in home/bin shell: | - curl ix.io/client > ~/bin/up + curl https://gist.githubusercontent.com/eoli3n/422afffb4801b7419233c232e2843887/raw/f07e3db3658810e6cdafd6352b56c9d1c4ae971b/up > ~/bin/up chmod +x ~/bin/up args: creates: ~/bin/up