Skip to content

Instantly share code, notes, and snippets.

@cesarLDsousa
Forked from diegolikescode/.zshrc
Last active February 21, 2024 12:32
Show Gist options
  • Save cesarLDsousa/741c9002f0ca2ca7240e9eaa78df284d to your computer and use it in GitHub Desktop.
Save cesarLDsousa/741c9002f0ca2ca7240e9eaa78df284d to your computer and use it in GitHub Desktop.
my .zshrc
export PATH=$HOME/.config/composer/vendor/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="spaceship"
plugins=(git)
alias mynvim='cd ~/.config/nvim/lua/user/ && nvim'
alias gc-github='git-config --github'
alias gc-bitbucket='git-config --bitbucket'
SPACESHIP_PROMPT_ORDER=(
# user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
exec_time # Execution time
line_sep # Line break
# vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_USER_SHOW=always
SPACESHIP_PROMPT_ADD_NEWLINE=true
SPACESHIP_CHAR_SYMBOL="❯"
SPACESHIP_CHAR_SUFFIX=" "
function git_config {
git config --global user.name "cesarLDsousa"
git config --global user.email "cesarluiz.git@gmail.com"
}
source $ZSH/oh-my-zsh.sh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/config/git.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment