summaryrefslogtreecommitdiffstatshomepage
path: root/zsh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-11-06 00:25:09 -0500
committerToby Vincent <tobyv13@gmail.com>2021-11-06 00:25:09 -0500
commitf2163cf3e010d12eadce8908cff2148a0f04d14c (patch)
tree86ddd843a6b2556a722febf642716cbaf8b27e37 /zsh
parenta8dc1eff5b02e0e53012bebc39c8df5745274bc9 (diff)
refactor: moved from p10k to starship
Diffstat (limited to 'zsh')
-rw-r--r--zsh/plugins.txt1
-rw-r--r--zsh/plugins.zsh3
-rw-r--r--zsh/prompt.zsh14
-rw-r--r--zsh/setopt.zsh11
4 files changed, 10 insertions, 19 deletions
diff --git a/zsh/plugins.txt b/zsh/plugins.txt
index a60b40c..77af8da 100644
--- a/zsh/plugins.txt
+++ b/zsh/plugins.txt
@@ -1,4 +1,3 @@
-romkatv/powerlevel10k.git
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
memark/zsh-dotnet-completion
diff --git a/zsh/plugins.zsh b/zsh/plugins.zsh
index 5248aed..85ce461 100644
--- a/zsh/plugins.zsh
+++ b/zsh/plugins.zsh
@@ -1,6 +1,3 @@
-source /home/tobyv/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-romkatv-SLASH-powerlevel10k.git/powerlevel10k.zsh-theme
-source /home/tobyv/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-romkatv-SLASH-powerlevel10k.git/powerlevel9k.zsh-theme
-fpath+=( /home/tobyv/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-romkatv-SLASH-powerlevel10k.git )
source /home/tobyv/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
fpath+=( /home/tobyv/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-syntax-highlighting )
source /home/tobyv/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh
deleted file mode 100644
index 4298c70..0000000
--- a/zsh/prompt.zsh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env zsh
-
-function set_title() {
- folder=$(sed "s/$USER/~/g" <<<$PWD:t)
-
- window_title="\033]0;$USER@$HOST: $folder\007"
- echo -ne "$window_title"
-}
-
-# make sure we can register hooks
-autoload -Uz add-zsh-hook && add-zsh-hook precmd set_title
-
-# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
-[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh \ No newline at end of file
diff --git a/zsh/setopt.zsh b/zsh/setopt.zsh
index 8c173e5..7fffab6 100644
--- a/zsh/setopt.zsh
+++ b/zsh/setopt.zsh
@@ -7,4 +7,13 @@ DISABLE_UPDATE_PROMPT="true"
DISABLE_AUTO_TITLE="true"
setopt HIST_IGNORE_ALL_DUPS
setopt NO_BEEP
-setopt MENU_COMPLETE \ No newline at end of file
+setopt MENU_COMPLETE
+
+function set_title() {
+ folder=$(sed "s/$USER/~/g" <<<$PWD:t)
+
+ window_title="\033]0;$USER@$HOST: $folder\007"
+ echo -ne "$window_title"
+}
+
+autoload -Uz add-zsh-hook && add-zsh-hook precmd set_title \ No newline at end of file