Skip to content

Instantly share code, notes, and snippets.

@ziimiin14
ziimiin14 / .zprofile
Created July 13, 2023 04:59
zprofile for mac
eval "$(/opt/homebrew/bin/brew shellenv)"
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
@ziimiin14
ziimiin14 / .zshrc
Created July 13, 2023 04:57
zshrc for ohmyzsh
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@ziimiin14
ziimiin14 / .zsh_aliases
Created July 13, 2023 04:53
.zsh_aliases
alias vim=nvim
alias python=python3
@ziimiin14
ziimiin14 / .p10k.zsh
Created July 13, 2023 04:52
powerline 10k configuration
# Generated by Powerlevel10k configuration wizard on 2023-07-08 at 23:05 +08.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 8022.
# Wizard options: nerdfont-v3 + powerline, small icons, rainbow, unicode, 24h time,
# angled separators, sharp heads, flat tails, 2 lines, dotted, left frame,
# darkest-ornaments, compact, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
@ziimiin14
ziimiin14 / .fzf.zsh
Created July 13, 2023 04:51
fzf zsh script
# Setup fzf
# ---------
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.zsh" 2> /dev/null