mirror of
https://github.com/shokinn/.files.git
synced 2026-05-29 19:54:26 +00:00
Refactor zshrc for improved readability and update SVG favicon
This commit is contained in:
parent
4432e8f538
commit
ac016529ca
2 changed files with 33 additions and 22 deletions
|
|
@ -9,19 +9,15 @@ if [[ -r "${XDG_CACHE_HOME:-{{@@ env['HOME'] @@}}/.cache}/p10k-instant-prompt-${
|
||||||
source "${XDG_CACHE_HOME:-{{@@ env['HOME'] @@}}/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-{{@@ env['HOME'] @@}}/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
||||||
[[ ! -f {{@@ env['HOME'] @@}}/.p10k.zsh ]] || source {{@@ env['HOME'] @@}}/.p10k.zsh
|
|
||||||
[[ -f {{@@ env['HOME'] @@}}/.config/zsh/p10k.mise.zsh ]] && source ~/.config/zsh/p10k.mise.zsh
|
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=${HOME}/bin:/usr/local/bin:$PATH
|
# export PATH=${HOME}/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH={{@@ env['HOME'] @@}}/.oh-my-zsh
|
export ZSH={{@@ env['HOME'] @@}}/.oh-my-zsh
|
||||||
|
|
||||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
# it'll load a random theme each time that Oh My Zsh is loaded.
|
||||||
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
if [[ ${TERM} == 'linux' ]]; then
|
if [[ ${TERM} == 'linux' ]]; then
|
||||||
ZSH_THEME="agnoster"
|
ZSH_THEME="agnoster"
|
||||||
else
|
else
|
||||||
|
|
@ -42,11 +38,16 @@ fi
|
||||||
# sensitive completion must be off. _ and - will be interchangeable.
|
# sensitive completion must be off. _ and - will be interchangeable.
|
||||||
# HYPHEN_INSENSITIVE="true"
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
# Uncomment one of the following lines to change Oh My Zsh update behavior.
|
||||||
# DISABLE_AUTO_UPDATE="true"
|
# zstyle ':omz:update' mode disabled
|
||||||
|
# zstyle ':omz:update' mode auto
|
||||||
|
# zstyle ':omz:update' mode reminder
|
||||||
|
|
||||||
# Uncomment the following line to change how often to auto-update (in days).
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
# export UPDATE_ZSH_DAYS=13
|
# zstyle ':omz:update' frequency 13
|
||||||
|
|
||||||
|
# Uncomment the following line to limit update output.
|
||||||
|
zstyle ':omz:update' verbose default
|
||||||
|
|
||||||
# Uncomment the following line to disable colors in ls.
|
# Uncomment the following line to disable colors in ls.
|
||||||
# DISABLE_LS_COLORS="true"
|
# DISABLE_LS_COLORS="true"
|
||||||
|
|
@ -117,10 +118,8 @@ plugins=(
|
||||||
uv
|
uv
|
||||||
vscode
|
vscode
|
||||||
zoxide
|
zoxide
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-navigation-tools
|
zsh-navigation-tools
|
||||||
zsh-ssh
|
zsh-ssh
|
||||||
zsh-syntax-highlighting
|
|
||||||
{%@@ if distro == 'macos' @@%} # Mac specifics
|
{%@@ if distro == 'macos' @@%} # Mac specifics
|
||||||
brew
|
brew
|
||||||
iterm2
|
iterm2
|
||||||
|
|
@ -128,10 +127,10 @@ plugins=(
|
||||||
{%@@ endif @@%}{%@@ if distro == 'arch' @@%} # Archlinux specifics
|
{%@@ endif @@%}{%@@ if distro == 'arch' @@%} # Archlinux specifics
|
||||||
archlinux
|
archlinux
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
zsh-autosuggestions
|
||||||
|
zsh-syntax-highlighting
|
||||||
)
|
)
|
||||||
|
|
||||||
autoload -U compinit && compinit
|
|
||||||
|
|
||||||
# Source fzf-tab-completions
|
# Source fzf-tab-completions
|
||||||
# source {{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh
|
# source {{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh
|
||||||
# zstyle ':completion:*' fzf-search-display true
|
# zstyle ':completion:*' fzf-search-display true
|
||||||
|
|
@ -141,9 +140,17 @@ autoload -U compinit && compinit
|
||||||
fpath+={{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/zsh-completions/src
|
fpath+={{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/zsh-completions/src
|
||||||
# A set of custom completions
|
# A set of custom completions
|
||||||
fpath+={{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/custom-completions
|
fpath+={{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/custom-completions
|
||||||
|
{%@@ if profile == 'ymir' @@%}
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
fpath+=~/.zfunc
|
||||||
|
{%@@ endif @@%}
|
||||||
|
|
||||||
source ${ZSH}/oh-my-zsh.sh
|
source ${ZSH}/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f {{@@ env['HOME'] @@}}/.p10k.zsh ]] || source {{@@ env['HOME'] @@}}/.p10k.zsh
|
||||||
|
[[ -f {{@@ env['HOME'] @@}}/.config/zsh/p10k.mise.zsh ]] && source {{@@ env['HOME'] @@}}/.config/zsh/p10k.mise.zsh
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
|
@ -202,9 +209,9 @@ alias hosts="uvx git+https://git.s1q.dev/phg/hosts.git"
|
||||||
{%@@ if distro == 'macos' @@%}
|
{%@@ if distro == 'macos' @@%}
|
||||||
# Decide which homebrew installation (x64_86 / arm64) should be used
|
# Decide which homebrew installation (x64_86 / arm64) should be used
|
||||||
if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
|
if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
|
||||||
local brew_path="/usr/local/homebrew/bin"
|
brew_path="/usr/local/homebrew/bin"
|
||||||
else
|
else
|
||||||
local brew_path="/opt/homebrew/bin"
|
brew_path="/opt/homebrew/bin"
|
||||||
fi
|
fi
|
||||||
export PATH="${brew_path}:${PATH}"
|
export PATH="${brew_path}:${PATH}"
|
||||||
|
|
||||||
|
|
@ -227,9 +234,3 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
|
||||||
source {{@@ env['HOME'] @@}}/.commonfunc
|
source {{@@ env['HOME'] @@}}/.commonfunc
|
||||||
{%@@ if vw == true @@%}source {{@@ env['HOME'] @@}}/.vwfunc
|
{%@@ if vw == true @@%}source {{@@ env['HOME'] @@}}/.vwfunc
|
||||||
source {{@@ env['HOME'] @@}}/.vwrc{%@@ endif @@%}
|
source {{@@ env['HOME'] @@}}/.vwrc{%@@ endif @@%}
|
||||||
|
|
||||||
{%@@ if profile == 'ymir' @@%}
|
|
||||||
autoload -Uz compinit
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
fpath+=~/.zfunc
|
|
||||||
{%@@ endif @@%}
|
|
||||||
|
|
|
||||||
10
favicon.svg
Normal file
10
favicon.svg
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 185.69 237" enable-background="new 0 0 185.69 237" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<path fill="#333333" d="M135.96,0h-1.06H16.93C7.58,0,0,7.58,0,16.93v203.14C0,229.42,7.58,237,16.93,237h151.83
|
||||||
|
c9.35,0,16.93-7.58,16.93-16.93V50.79v-1.06L135.96,0z"/>
|
||||||
|
<circle fill="#3FA9F5" cx="92.84" cy="118.5" r="25.39"/>
|
||||||
|
<line fill="#1A1A1A" x1="185.69" y1="50.79" x2="134.9" y2="0"/>
|
||||||
|
<path fill="#3FA9F5" d="M135.96,32.8c0,9.35,7.58,16.93,16.93,16.93h32.8L135.96,0V32.8z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 600 B |
Loading…
Add table
Add a link
Reference in a new issue