From e553c1f3fa8d2e9096a8355d4d95744c905b4b0a Mon Sep 17 00:00:00 2001 From: Setyo Date: Tue, 23 Jul 2024 10:50:09 +0700 Subject: [PATCH] Tue Jul 23 10:50:09 AM WIB 2024 --- zshrc | 48 +++++++++++++----------------------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/zshrc b/zshrc index 7b8988e..2c99468 100644 --- a/zshrc +++ b/zshrc @@ -60,47 +60,25 @@ COMPLETION_WAITING_DOTS="true" # Would you like to use another custom folder than $ZSH/custom? # ZSH_CUSTOM=/path/to/new-custom-folder -# Which plugins would you like to load? -# Standard plugins can be found in $ZSH/plugins/ -# Custom plugins may be added to $ZSH_CUSTOM/plugins/ -# Example format: plugins=(rails git textmate ruby lighthouse) -# Add wisely, as too many plugins slow down shell startup. -plugins=(git docker docker-compose sudo rust) - -source $ZSH/oh-my-zsh.sh - -# User configuration +export BUN_INSTALL="$HOME/.local/bun" -# export MANPATH="/usr/local/man:$MANPATH" +export PATH="$BUN_INSTALL/bin:$PATH" -# You may need to manually set your language environment -# export LANG=en_US.UTF-8 +[ -s "${BUN_INSTALL}/_bun" ] && source "${BUN_INSTALL}/_bun" -if [ -f ~/.aliases ]; then source ~/.aliases; fi +[ -f ~/.aliases ] && source ~/.aliases -if [ -f ~/.env ]; then source ~/.env; fi +[ -f ~/.env ] && source ~/.env -if [ -f $CARGO_HOME/env ]; then source $CARGO_HOME/env; fi +[ -f $CARGO_HOME/env ] && source $CARGO_HOME/env -# Compilation flags -# export ARCHFLAGS="-arch x86_64" +# Which plugins would you like to load? +# Standard plugins can be found in $ZSH/plugins/ +# Custom plugins may be added to $ZSH_CUSTOM/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(asdf git docker docker-compose sudo rust) -# Set personal aliases, overriding those provided by oh-my-zsh libs, -# plugins, and themes. Aliases can be placed here, though oh-my-zsh -# users are encouraged to define aliases within the ZSH_CUSTOM folder. -# For a full list of active aliases, run `alias`. -# -# Example aliases -# alias zshconfig="mate ~/.zshrc" -# alias ohmyzsh="mate ~/.oh-my-zsh" +source $ZSH/oh-my-zsh.sh if command -v starship &> /dev/null; then eval "$(starship init zsh)"; fi - - - -# bun completions -[ -s "/home/nsetyo/.local/bun/_bun" ] && source "/home/nsetyo/.local/bun/_bun" - -# bun -export BUN_INSTALL="$HOME/.local/bun" -export PATH="$BUN_INSTALL/bin:$PATH"