Skip to content

Instantly share code, notes, and snippets.

@pavelgordon
Created April 5, 2023 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavelgordon/f10c8c74a9a8c7bac65c8ff02c00a5a6 to your computer and use it in GitHub Desktop.
Save pavelgordon/f10c8c74a9a8c7bac65c8ff02c00a5a6 to your computer and use it in GitHub Desktop.
.zshrc
# 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
zmodload zsh/zprof
export ZSH="/Users/pavelg/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_DISABLE_COMPFIX="true"
DISABLE_UPDATE_PROMPT="true"
COMPLETION_WAITING_DOTS="true"
plugins=(git)
source $ZSH/oh-my-zsh.sh
ZSH_DISABLE_COMPFIX=true
export PATH="$HOME/.jenv/bin:$PATH"
timezsh() {
shell=${1-$SHELL}
for i in $(seq 1 10); do /usr/bin/time $shell -i -c exit; done
}
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
function vscode() {
if [ "$#" -eq 1 ]; then
open -a "Visual Studio Code" "$1"
else
open -a "Visual Studio Code"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment