config(zsh): replace omz, p10k with starship

main
sudo pacman -Syu 2024-10-09 13:54:27 +07:00
parent 0e7a9953ac
commit 24fbd413a8
23 changed files with 54 additions and 390 deletions

View File

@ -78,14 +78,6 @@ external = "~/.config/ripgrep"
internal = "data/zellij" internal = "data/zellij"
external = "~/.config/zellij" external = "~/.config/zellij"
[[apps.powerlevel10k.paths]]
internal = "data/powerlevel10k/.p10k.zsh"
external = "~/.p10k.zsh"
[[apps.powerlevel10k.paths]]
internal = "data/powerlevel10k/.p10k.zsh"
url = "https://raw.githubusercontent.com/romkatv/powerlevel10k/master/config/p10k-robbyrussell.zsh"
[[apps.zed.paths]] [[apps.zed.paths]]
internal = "data/zed/settings.json" internal = "data/zed/settings.json"
external = "~/.config/zed/settings.json" external = "~/.config/zed/settings.json"
@ -94,10 +86,6 @@ external = "~/.config/zed/settings.json"
internal = "data/zed/keymap.json" internal = "data/zed/keymap.json"
external = "~/.config/zed/keymap.json" external = "~/.config/zed/keymap.json"
[[apps.pokeget.paths]]
internal = "data/pokeget"
external = "~/.config/pokeget"
[[apps.btop.paths]] [[apps.btop.paths]]
internal = "data/btop/themes" internal = "data/btop/themes"
external = "~/.config/btop/themes" external = "~/.config/btop/themes"
@ -126,10 +114,6 @@ external = "~/.config/newsboat/dark"
internal = "data/newsboat/dark" internal = "data/newsboat/dark"
url = "https://raw.githubusercontent.com/catppuccin/newsboat/main/themes/dark" url = "https://raw.githubusercontent.com/catppuccin/newsboat/main/themes/dark"
[[apps.sioyek.paths]]
internal = "data/sioyek/prefs_user.config"
external = "~/.config/sioyek/prefs_user.config"
[[apps.typos.paths]] [[apps.typos.paths]]
internal = "data/typos/typos.toml" internal = "data/typos/typos.toml"
external = "~/.config/typos/typos.toml" external = "~/.config/typos/typos.toml"

View File

@ -1,10 +0,0 @@
▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄
▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▀▀▀▀▄▄▄▄▄▄▀▀
▀▀▀▀

View File

@ -1,12 +0,0 @@
▄▄▄
▄▄▄▄ ▄▄▄▄▄
▄▄▄▄▄▄▀ ▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄ ▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄ ▀▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▀▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▀▀ ▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▀▄▄▄▄▄▄▄
▄▄▄▄▄
▀▀▀

View File

@ -1,10 +0,0 @@
▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▀▀
▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▄▄▄▄▄▀▀▀
▀▀

View File

@ -1,10 +0,0 @@
▄▄▄ ▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▄▄▄▀▀▀
▀▀

View File

@ -1,7 +0,0 @@
▄▄▄▄ ▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▄▄▄▄▄▄▀▀
▀▀▀▀

View File

@ -1,9 +0,0 @@
▄▄▄
▄▄▄▄▄▄▄ ▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▀ ▀▀
▀▄▄▄▄▀▀

View File

@ -1,9 +0,0 @@
▄▄▄▄
▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▀ ▀▀
▀▀▄▄▀

View File

@ -1,11 +0,0 @@
▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▀ ▄▄▄▄▄▄▄▄▄▄▀▀▄▄▀▀
▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▀▀▀▄▄▄▄▄▄
▀▄▄▄▄▄

View File

@ -1,11 +0,0 @@
▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▀▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄
▀▀▀▄▄▄▄▀
▀

View File

@ -1,10 +0,0 @@
▄▄▄ ▄▄
▄▄▄▄ ▄▄▄▄▄▄▄▄▄
▄▄▄▄▀ ▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▀▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▀
▀▀▄▀

View File

@ -1,11 +0,0 @@
▄ ▄▄ ▄▄
▄▄▄▄▄▄▄▄▄▀▀
▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▀▄▄▀▄▄▄▄▄▄▀
▀▀▀▀

View File

@ -1,11 +0,0 @@
▄▄▄▄▄▄
▀▀▄▄▄▄▄
▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀
▀▀▄▄▄▀▀▄▄▄▄▄▄▀
▀▀▀▀

View File

@ -1,9 +0,0 @@
▄▄▄▄▄▄▄ ▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▀▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄
▀▀ ▀▄▄▄▄▄
▀▀▀

View File

@ -1,111 +0,0 @@
# Config file for Powerlevel10k with the style of robbyrussell theme from Oh My Zsh.
#
# Original: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes#robbyrussell.
#
# Replication of robbyrussell theme is exact. The only observable difference is in
# performance. Powerlevel10k prompt is very fast everywhere, even in large Git repositories.
#
# Usage: Source this file either before or after loading Powerlevel10k.
#
# source ~/powerlevel10k/config/p10k-robbyrussell.zsh
# source ~/powerlevel10k/powerlevel10k.zsh-theme
# Temporarily change options.
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh -o extended_glob
# Unset all configuration options.
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
# Zsh >= 5.1 is required.
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
# Left prompt segments.
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(prompt_char dir vcs)
# Right prompt segments.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
# Basic style options that define the overall prompt look.
typeset -g POWERLEVEL9K_BACKGROUND= # transparent background
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_{LEFT,RIGHT}_WHITESPACE= # no surrounding whitespace
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SUBSEGMENT_SEPARATOR=' ' # separate segments with a space
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol
typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons
# Green prompt symbol if the last command succeeded.
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=green
# Red prompt symbol if the last command failed.
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=red
# Prompt symbol: bold arrow.
typeset -g POWERLEVEL9K_PROMPT_CHAR_CONTENT_EXPANSION='%B➜ '
# Cyan current directory.
typeset -g POWERLEVEL9K_DIR_FOREGROUND=cyan
# Show only the last segment of the current directory.
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_last
# Bold directory.
typeset -g POWERLEVEL9K_DIR_CONTENT_EXPANSION='%B$P9K_CONTENT'
# Git status formatter.
function my_git_formatter() {
emulate -L zsh
if [[ -n $P9K_CONTENT ]]; then
# If P9K_CONTENT is not empty, it's either "loading" or from vcs_info (not from
# gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
typeset -g my_git_format=$P9K_CONTENT
else
# Use VCS_STATUS_* parameters to assemble Git status. See reference:
# https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh.
typeset -g my_git_format="${1+%B%4F}git:(${1+%1F}"
my_git_format+=${${VCS_STATUS_LOCAL_BRANCH:-${VCS_STATUS_COMMIT[1,8]}}//\%/%%}
my_git_format+="${1+%4F})"
if (( VCS_STATUS_NUM_CONFLICTED || VCS_STATUS_NUM_STAGED ||
VCS_STATUS_NUM_UNSTAGED || VCS_STATUS_NUM_UNTRACKED )); then
my_git_format+=" ${1+%3F}"
fi
fi
}
functions -M my_git_formatter 2>/dev/null
# Disable the default Git status formatting.
typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
# Install our own Git status formatter.
typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter(1)))+${my_git_format}}'
typeset -g POWERLEVEL9K_VCS_LOADING_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'
# Grey Git status when loading.
typeset -g POWERLEVEL9K_VCS_LOADING_FOREGROUND=246
# Instant prompt mode.
#
# - off: Disable instant prompt. Choose this if you've tried instant prompt and found
# it incompatible with your zsh configuration files.
# - quiet: Enable instant prompt and don't print warnings when detecting console output
# during zsh initialization. Choose this if you've read and understood
# https://github.com/romkatv/powerlevel10k#instant-prompt.
# - verbose: Enable instant prompt and print a warning when detecting console output during
# zsh initialization. Choose this if you've never tried instant prompt, haven't
# seen the warning, or if you are unsure what this all means.
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
# can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
# really need it.
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
# If p10k is already loaded, reload configuration.
# This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.
(( ! $+functions[p10k] )) || p10k reload
}
# Tell `p10k configure` which file it should overwrite.
typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}
(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
'builtin' 'unset' 'p10k_config_opts'

View File

@ -1,10 +0,0 @@
font_size 14
ui_font Shantell Sans Normal
status_bar_font_size 14
flat_toc 1
horizontal_move_amount -1.0
use_legacy_keybinds 0
control_click_command noop
control_right_click_command noop

View File

@ -1,16 +1,8 @@
# vim: set filetype=zsh: # vim: set filetype=zsh:
# Put this on bottom of ~/.zshrc # Put this on bottom of ~/.zshrc
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#automatic-title # https://blog.izissise.net/posts/env-path/
ZSH_THEME_TERM_TITLE_IDLE="%~" typeset -U path PATH
ZSH_THEME_TERM_TAB_TITLE_IDLE="%~"
# https://github.com/romkatv/powerlevel10k#how-do-i-configure-instant-prompt
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# https://github.com/romkatv/powerlevel10k#mitigation
typeset -g POWERLEVEL9K_TERM_SHELL_INTEGRATION=true
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
# Alias # Alias
alias g="git" alias g="git"
@ -25,6 +17,16 @@ export XDG_DATA_HOME=~/.local/share
# https://www.topbug.net/blog/2016/09/27/make-gnu-less-more-powerful/ # https://www.topbug.net/blog/2016/09/27/make-gnu-less-more-powerful/
export LESS="-RF -i -K -s -x2 --wordwrap" export LESS="-RF -i -K -s -x2 --wordwrap"
# zsh plugins
# https://github.com/zsh-users/zsh-autosuggestions
if [[ -f /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
fi
# git # git
# https://stackoverflow.com/a/43747486 # https://stackoverflow.com/a/43747486
export GIT_COMPLETION_CHECKOUT_NO_GUESS=1 export GIT_COMPLETION_CHECKOUT_NO_GUESS=1
@ -39,11 +41,15 @@ if command -v nvim &>/dev/null; then
fi fi
# go # go
export GOPATH=$HOME/go # https://stackoverflow.com/a/13542854
export PATH=$PATH:$GOPATH/bin if command -v go &>/dev/null; then
# Depend on your company if [[ -d $HOME/go ]]; then
# Please copy this manually to ~/.zshrc export GOPATH=$HOME/go
# export GOPRIVATE=example.company.com path=($path $GOPATH/bin)
fi
# Depend on your company
# export GOPRIVATE=example.company.com
fi
# fzf # fzf
# https://github.com/junegunn/fzf # https://github.com/junegunn/fzf
@ -82,6 +88,15 @@ if command -v fzf &>/dev/null; then
if command -v eza &>/dev/null; then if command -v eza &>/dev/null; then
export FZF_ALT_C_OPTS="--preview 'eza --tree --level 1 {}'" export FZF_ALT_C_OPTS="--preview 'eza --tree --level 1 {}'"
fi fi
source <(fzf --zsh)
# https://github.com/Aloxaf/fzf-tab
if [[ -f $HOME/.zsh-plugins/fzf-tab/fzf-tab.plugin.zsh ]]; then
source /Users/anon/.zsh-plugins/fzf-tab/fzf-tab.plugin.zsh
zstyle ':completion:*' menu no
fi
fi fi
# https://github.com/BurntSushi/ripgrep # https://github.com/BurntSushi/ripgrep
@ -135,16 +150,18 @@ if command -v moar &>/dev/null; then
export PAGER=moar export PAGER=moar
fi fi
# https://github.com/oven-sh/bun
# Depend on your settings
# Please copy this manually to ~/.zshrc
# export GITHUB_TOKEN=your_github_token
# https://github.com/Schniz/fnm # https://github.com/Schniz/fnm
if command -v fnm &>/dev/null; then if command -v fnm &>/dev/null; then
eval "$(fnm env --use-on-cd)" eval "$(fnm env --use-on-cd)"
fi fi
# https://github.com/oven-sh/bun
if command -v bun &>/dev/null; then
if [[ -d $HOME/.cache/.bun/bin ]]; then
path=($path $HOME/.cache/.bun/bin)
fi
fi
# https://github.com/casey/just # https://github.com/casey/just
if command -v just &>/dev/null; then if command -v just &>/dev/null; then
alias jst="just" alias jst="just"
@ -167,32 +184,9 @@ if command -v daktilo &>/dev/null; then
export DAKTILO_CONFIG="$HOME/.config/daktilo/daktilo.toml" export DAKTILO_CONFIG="$HOME/.config/daktilo/daktilo.toml"
fi fi
# https://github.com/talwat/pokeget-rs # https://github.com/starship/starship
rand_poke=$((RANDOM % 13)) if command -v starship &>/dev/null; then
if [[ $rand_poke -eq 0 ]]; then eval "$(starship init zsh)"
cat ~/.config/pokeget/bulbasaur.txt
elif [[ $rand_poke -eq 1 ]]; then
cat ~/.config/pokeget/charmeleon.txt
elif [[ $rand_poke -eq 2 ]]; then
cat ~/.config/pokeget/chikorita.txt
elif [[ $rand_poke -eq 3 ]]; then
cat ~/.config/pokeget/clefairy.txt
elif [[ $rand_poke -eq 4 ]]; then
cat ~/.config/pokeget/ditto.txt
elif [[ $rand_poke -eq 5 ]]; then
cat ~/.config/pokeget/dratini.txt
elif [[ $rand_poke -eq 6 ]]; then
cat ~/.config/pokeget/eevee.txt
elif [[ $rand_poke -eq 7 ]]; then
cat ~/.config/pokeget/machoke.txt
elif [[ $rand_poke -eq 8 ]]; then
cat ~/.config/pokeget/pikachu-world-cap.txt
elif [[ $rand_poke -eq 9 ]]; then
cat ~/.config/pokeget/pikachu.txt
elif [[ $rand_poke -eq 10 ]]; then
cat ~/.config/pokeget/psyduck.txt
elif [[ $rand_poke -eq 11 ]]; then
cat ~/.config/pokeget/slowpoke.txt
elif [[ $rand_poke -eq 12 ]]; then
cat ~/.config/pokeget/squirtle.txt
fi fi
export PATH

View File

@ -1,6 +1,11 @@
# vim: set filetype=zsh: # vim: set filetype=zsh:
# Put this on top of ~/.zshrc # Put this on top of ~/.zshrc
# See https://wiki.archlinux.org/title/Zsh
# https://lgug2z.com/articles/sensible-wordchars-for-most-developers/
export WORDCHARS='*?[]~=&;!#$%^(){}<>'
# https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell # https://zsh.sourceforge.io/Doc/Release/Parameters.html#Parameters-Used-By-The-Shell
export HISTORY_IGNORE="(l[sal]|cd|pwd|exit|z)" export HISTORY_IGNORE="(l[sal]|cd|pwd|exit|z)"
export HISTSIZE=100000000 export HISTSIZE=100000000
@ -22,35 +27,5 @@ setopt INC_APPEND_HISTORY_TIME
bindkey "^[[1;3C" forward-word bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word bindkey "^[[1;3D" backward-word
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#omzupdate-mode autoload -Uz compinit
zstyle ':omz:update' mode disabled compinit
zstyle ':omz:update' verbose minimal
# Skip aliases
zstyle ':omz:*' aliases no
zstyle ':omz:lib:*' aliases no
zstyle ':omz:plugins:*' aliases no
# https://github.com/Aloxaf/fzf-tab
zstyle ':completion:*' menu no
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#hyphen_insensitive
HYPHEN_INSENSITIVE="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/5569
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_magic_functions
DISABLE_MAGIC_FUNCTIONS="true"
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_ls_colors
DISABLE_LS_COLORS="true"
# https://github.com/ohmyzsh/ohmyzsh/issues/10291
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#disable_untracked_files_dirty
DISABLE_UNTRACKED_FILES_DIRTY="true"
# https://github.com/ohmyzsh/ohmyzsh/wiki/Settings#automatic-title
DISABLE_AUTO_TITLE=true
# https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE

View File

@ -2,11 +2,12 @@
brew install \ brew install \
libgit2 pcre2 xz telnet \ libgit2 pcre2 xz telnet \
starship zsh-autosuggestions \
git neovim \ git neovim \
fdupes rsync rclone restic wcurl ncdu \ fdupes rsync rclone restic wcurl ncdu \
tlrc vivid zellij \ tlrc vivid zellij \
yt-dlp newsboat vips btop \ yt-dlp newsboat vips btop \
fnm uv just \ fnm oven-sh/bun/bun deno uv just \
stylua taplo typos-cli clang-format marksman asciidoctor ollama gitleaks gh glab \ stylua taplo typos-cli clang-format marksman asciidoctor ollama gitleaks gh glab \
qmk daktilo \ qmk/qmk/qmk daktilo \
redis mysql-client redis mysql-client

View File

@ -1,6 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
bun upgrade --stable
bun outdated --global
bun update --global --latest prettier bun update --global --latest prettier

View File

@ -4,23 +4,8 @@ rustup update
cargo install \ cargo install \
fd-find bat git-delta eza sd \ fd-find bat git-delta eza sd \
difftastic zoxide \ difftastic zoxide
pokeget
cargo install --git https://github.com/BurntSushi/ripgrep ripgrep --features 'pcre2' cargo install --git https://github.com/BurntSushi/ripgrep ripgrep --features 'pcre2'
bat cache --build bat cache --build
pokeget --hide-name bulbasaur >data/pokeget/bulbasaur.txt
pokeget --hide-name charmeleon >data/pokeget/charmeleon.txt
pokeget --hide-name chikorita >data/pokeget/chikorita.txt
pokeget --hide-name clefairy >data/pokeget/clefairy.txt
pokeget --hide-name ditto >data/pokeget/ditto.txt
pokeget --hide-name dratini >data/pokeget/dratini.txt
pokeget --hide-name eevee >data/pokeget/eevee.txt
pokeget --hide-name machoke >data/pokeget/machoke.txt
pokeget --hide-name pikachu >data/pokeget/pikachu.txt
pokeget --hide-name pikachu-world-cap >data/pokeget/pikachu-world-cap.txt
pokeget --hide-name psyduck >data/pokeget/psyduck.txt
pokeget --hide-name slowpoke >data/pokeget/slowpoke.txt
pokeget --hide-name squirtle >data/pokeget/squirtle.txt

View File

@ -1,13 +0,0 @@
#!/usr/bin/env bash
cargo install --force \
fd-find bat git-delta eza sd tlrc \
difftastic vivid zellij zoxide \
stylua typos-cli \
pokeget \
daktilo
cargo install --force --git https://github.com/BurntSushi/ripgrep ripgrep --features 'pcre2'
cargo install --force --git https://github.com/Schniz/fnm fnm
cargo install --force --git https://github.com/astral-sh/rye rye
cargo install --force --git https://github.com/tamasfe/taplo taplo-cli

View File

@ -1,13 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
git -C ~/.oh-my-zsh pull git -C ~/.zsh-plugins/fzf-tab pull master
git -C ~/.oh-my-zsh/custom/themes/powerlevel10k pull
git -C ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions pull
git -C ~/.oh-my-zsh/custom/plugins/fzf-tab pull
git -C ~/.fzf pull
~/.fzf/install --key-bindings --completion --update-rc --no-bash --no-fish
fnm install --lts fnm install --lts
deno upgrade