Skip to content

Commit

Permalink
p10k: remove f3 segment
Browse files Browse the repository at this point in the history
  • Loading branch information
geodimm committed Dec 12, 2024
1 parent 1287f23 commit 53bccf4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
16 changes: 0 additions & 16 deletions zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,3 @@ alias gu="git stash && git pull && git stash pop || true"
docker-clean() {
docker container prune -f && docker volume prune -f && docker network prune -f
}

# convert minutes {0..60} to {red..green} in hex
function _minutes_to_hex() {
local num=$1
local min=0
local max=60
local middle=$(((min + max) / 2))
local scale=$((255.0 / (middle - min)))
if [[ $num -le $min ]]; then local num=$min; fi
if [[ $num -ge $max ]]; then local num=$max; fi
if [[ $num -le $middle ]]; then
printf "#ff%02x00\n" $(((num - min) * scale))
else
printf "#%02xff00\n" $((255 - ((num - middle) * scale)))
fi
}
1 change: 0 additions & 1 deletion zsh/p10k/segments/_prompt.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
# line 1 {{{2
context # user@hostname
form3_shell # f3 shell indicator
vim_shell # vim shell indicator (:sh)
dir # current directory
vcs # git status
Expand Down
25 changes: 0 additions & 25 deletions zsh/p10k/segments/form3_shell.zsh

This file was deleted.

0 comments on commit 53bccf4

Please sign in to comment.