From a62114c91f2070c8c8453d117f3d81dc113e41ff Mon Sep 17 00:00:00 2001
From: Biswakalyan Bhuyan <biswa@surgot.in>
Date: Mon, 25 Mar 2024 16:43:09 +0530
Subject: dotfile update

---
 zsh/oh-my-zsh/plugins/hitokoto/README.md           | 15 ---------------
 zsh/oh-my-zsh/plugins/hitokoto/hitokoto.plugin.zsh | 18 ------------------
 2 files changed, 33 deletions(-)
 delete mode 100644 zsh/oh-my-zsh/plugins/hitokoto/README.md
 delete mode 100644 zsh/oh-my-zsh/plugins/hitokoto/hitokoto.plugin.zsh

(limited to 'zsh/oh-my-zsh/plugins/hitokoto')

diff --git a/zsh/oh-my-zsh/plugins/hitokoto/README.md b/zsh/oh-my-zsh/plugins/hitokoto/README.md
deleted file mode 100644
index 3a8758f..0000000
--- a/zsh/oh-my-zsh/plugins/hitokoto/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# hitokoto plugin
-
-Displays a random quote taken from [hitokoto.cn](https://v1.hitokoto.cn/)
-
-Created by [Sinrimin](https://github.com/sinrimin)
-
-## Usage
-
-Add the plugin to the plugins array in your zshrc file and restart zsh:
-
-```zsh
-plugins=(... hitokoto)
-```
-
-Then, run `hitokoto` to get a new random quote.
diff --git a/zsh/oh-my-zsh/plugins/hitokoto/hitokoto.plugin.zsh b/zsh/oh-my-zsh/plugins/hitokoto/hitokoto.plugin.zsh
deleted file mode 100644
index e346d18..0000000
--- a/zsh/oh-my-zsh/plugins/hitokoto/hitokoto.plugin.zsh
+++ /dev/null
@@ -1,18 +0,0 @@
-if ! (( $+commands[curl] )); then
-  echo "hitokoto plugin needs curl to work" >&2
-  return
-fi
-
-function hitokoto {
-  setopt localoptions nopromptsubst
-
-  # Get hitokoto data
-  local -a data
-  data=("${(ps:\n:)"$(command curl -s --connect-timeout 2 "https://v1.hitokoto.cn" | command jq -j '.hitokoto+"\n"+.from')"}")
-
-  # Exit if could not fetch hitokoto
-  [[ -n "$data" ]] || return 0
-
-  local quote="${data[1]}" author="${data[2]}"
-  print -P "%F{3}${author}%f: “%F{5}${quote}%f”"
-}
-- 
cgit v1.2.3-59-g8ed1b