summaryrefslogtreecommitdiff
path: root/plugins/transfer/transfer.plugin.zsh
diff options
context:
space:
mode:
authorArvindraj <arvindultimate7352@gmail.com>2018-11-02 22:10:13 +0530
committerMarc Cornellà <marc.cornella@live.com>2018-11-02 17:40:13 +0100
commit05b617066ba5a37ef0c533385efd6e232a387b8f (patch)
tree6a95b06db03f962bede1d7b01717fb6ed237ffaa /plugins/transfer/transfer.plugin.zsh
parentfa9d93008b2c9d42f26320c92752f4f019c47404 (diff)
downloadzsh-05b617066ba5a37ef0c533385efd6e232a387b8f.tar.gz
zsh-05b617066ba5a37ef0c533385efd6e232a387b8f.tar.bz2
zsh-05b617066ba5a37ef0c533385efd6e232a387b8f.zip
transfer: add deprecation notice (#7372)
Fixes #7371 Signed-off-by: Arvindraj <arvindultimate7352@gmail.com> Co-authored-by: Stephen Ward <stephen@whilenotzero.com>
Diffstat (limited to 'plugins/transfer/transfer.plugin.zsh')
-rw-r--r--plugins/transfer/transfer.plugin.zsh10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh
index 7a7cd85ec..8fd09ef04 100644
--- a/plugins/transfer/transfer.plugin.zsh
+++ b/plugins/transfer/transfer.plugin.zsh
@@ -12,6 +12,14 @@
# Modified to use tar command instead of zip
#
+echo -ne '\e[1;33m'
+cat <<-EOF
+ [oh-my-zsh] WARNING: The 'transfer' plugin is deprecated and will be removed after
+ [oh-my-zsh] transfer.sh shuts down on November 30th. We suggest you stop using the
+ [oh-my-zsh] plugin and find an alternative file hosting service.
+EOF
+echo -ne '\e[0m'
+
curl --version 2>&1 > /dev/null
if [ $? -ne 0 ]; then
echo "Could not find curl."
@@ -64,4 +72,4 @@ transfer() {
# cleanup
rm -f $tmpfile
-} \ No newline at end of file
+}