Compare commits
3 Commits
00ba9863bc
...
521d9b73a3
| Author | SHA1 | Date | |
|---|---|---|---|
|
521d9b73a3
|
|||
|
54deab7cab
|
|||
|
af1fe008a1
|
@@ -2,6 +2,8 @@
|
|||||||
# theme = light:gruvbox-material-soft-light,dark:gruvbox-material-soft-dark
|
# theme = light:gruvbox-material-soft-light,dark:gruvbox-material-soft-dark
|
||||||
theme = gruvbox-material-soft-dark
|
theme = gruvbox-material-soft-dark
|
||||||
|
|
||||||
|
minimum-contrast = 1.1
|
||||||
|
|
||||||
# cursor
|
# cursor
|
||||||
cursor-style = block
|
cursor-style = block
|
||||||
cursor-style-blink = true
|
cursor-style-blink = true
|
||||||
@@ -12,8 +14,6 @@ mouse-hide-while-typing = true
|
|||||||
# font stuff
|
# font stuff
|
||||||
font-family = JetBrainsMono Nerd Font
|
font-family = JetBrainsMono Nerd Font
|
||||||
font-size = 15
|
font-size = 15
|
||||||
font-thicken = true
|
|
||||||
bold-is-bright = true
|
|
||||||
|
|
||||||
# disable ligatures
|
# disable ligatures
|
||||||
font-feature=-calt
|
font-feature=-calt
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ $character\
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
right_format = """\
|
right_format = """\
|
||||||
|
$nix_shell\
|
||||||
$golang\
|
$golang\
|
||||||
$lua\
|
$lua\
|
||||||
$nodejs\
|
$nodejs\
|
||||||
@@ -19,6 +20,10 @@ $rust\
|
|||||||
$cmd_duration\
|
$cmd_duration\
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
disabled = false
|
||||||
|
format = '[n(\($name\))](bold blue) '
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = '[>](bold green)'
|
success_symbol = '[>](bold green)'
|
||||||
error_symbol = '[>](bold red)'
|
error_symbol = '[>](bold red)'
|
||||||
|
|||||||
@@ -9,6 +9,3 @@ ohmyzsh/ohmyzsh path:plugins/git
|
|||||||
|
|
||||||
# popular fish-like plugins
|
# popular fish-like plugins
|
||||||
zsh-users/zsh-autosuggestions
|
zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
# nvm
|
|
||||||
lukechilds/zsh-nvm
|
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ export PATH="/opt/homebrew/sbin:$PATH"
|
|||||||
export LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/lib"
|
export LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/lib"
|
||||||
|
|
||||||
# cargo
|
# cargo
|
||||||
source "$HOME/.cargo/env"
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
fi
|
||||||
|
|
||||||
# language environment
|
# language environment
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
@@ -46,7 +48,7 @@ export POETRY_HOME="$XDG_DATA_HOME/poetry"
|
|||||||
command -v poetry >/dev/null || export PATH="$POETRY_HOME/bin:$PATH"
|
command -v poetry >/dev/null || export PATH="$POETRY_HOME/bin:$PATH"
|
||||||
|
|
||||||
# gnupg
|
# gnupg
|
||||||
export GPG_TTY=$TTY
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
# aflabs
|
# aflabs
|
||||||
export USER_UID=$(id -u)
|
export USER_UID=$(id -u)
|
||||||
|
|||||||
15
zsh/.zshrc
15
zsh/.zshrc
@@ -12,11 +12,20 @@ export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffffff,bg=cyan,bold,underline"
|
|||||||
source $ZDOTDIR/.antidote/antidote.zsh
|
source $ZDOTDIR/.antidote/antidote.zsh
|
||||||
antidote load
|
antidote load
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
antidote bundle lukechilds/zsh-nvm
|
||||||
|
fi
|
||||||
|
|
||||||
unsetopt autocd
|
unsetopt autocd
|
||||||
|
|
||||||
# pyenv
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
eval "$(pyenv init - zsh)"
|
eval "$(pyenv init - zsh)"
|
||||||
eval "$(pyenv virtualenv-init - zsh)"
|
eval "$(pyenv virtualenv-init - zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
fi
|
||||||
|
|
||||||
# ggman
|
# ggman
|
||||||
eval "$(ggman shellrc)"
|
eval "$(ggman shellrc)"
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
alias z="exec zsh"
|
alias z="exec zsh"
|
||||||
alias t=tmux_attach
|
alias t=tmux_attach
|
||||||
alias n=nvim_ve
|
|
||||||
# alias vim=nvim_ve
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
alias n=nvim_ve
|
||||||
|
alias vim=nvim_ve
|
||||||
|
elif [[ "$OSTYPE" == "linux"* ]]; then
|
||||||
|
alias n=nvim
|
||||||
|
fi
|
||||||
|
|
||||||
alias s="ssh-menu"
|
alias s="ssh-menu"
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ function nvim_ve {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
alias nvim=nvim_ve
|
|
||||||
|
|
||||||
function afm {
|
function afm {
|
||||||
RES=$(curl -s "https://$1/api/monitoring/requirements")
|
RES=$(curl -s "https://$1/api/monitoring/requirements")
|
||||||
COUNT=$(echo "$RES" | grep -c $2)
|
COUNT=$(echo "$RES" | grep -c $2)
|
||||||
|
|||||||
Reference in New Issue
Block a user