Last active
September 29, 2021 18:06
-
-
Save wilmerterrero/93911f744e83382ada9280375fc8f04c to your computer and use it in GitHub Desktop.
My zshrc config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/home/wilmer/.oh-my-zsh" | |
| # NVM Config | |
| export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| # Theme | |
| ZSH_THEME="robbyrussell" | |
| # plugins | |
| plugins=( | |
| git | |
| zsh-autosuggestions | |
| ) | |
| source $ZSH/oh-my-zsh.sh | |
| # Custom aliases | |
| alias projects="cd /mnt/c/Users/wterrero/desktop/projects" | |
| alias cls="clear" | |
| # git aliases | |
| alias ginit="git init ." | |
| alias gadd="git add ." | |
| alias gc="git commit -m 'Initial Commit'" | |
| source ~/powerlevel10k/powerlevel10k.zsh-theme | |
| source ~/powerlevel10k/powerlevel10k.zsh-theme | |
| # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
| [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment