Last active
December 29, 2024 00:50
-
-
Save bernardinorafael/8ca36f4002bbc0e8c2ee9b471c8ddec6 to your computer and use it in GitHub Desktop.
zsh shortcuts
This file contains 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
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time Oh My Zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="spaceship" | |
plugins=( | |
git | |
zsh-syntax-highlighting | |
) | |
source $ZSH/oh-my-zsh.sh | |
# 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 a top-level file in | |
# the $ZSH_CUSTOM folder, with .zsh extension. Examples: | |
# - $ZSH_CUSTOM/aliases.zsh | |
# - $ZSH_CUSTOM/macos.zsh | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias ..="cd .." | |
alias project="cd ~/Documents/projects" | |
alias work="cd ~/Documents/work" | |
alias oss="cd ~/Documents/projects/open-source" | |
alias stu="npx prisma studio" | |
alias gen="npx prisma generate" | |
alias mig="npx prisma migrate dev" | |
alias c="git commit -m" | |
alias a="git add ." | |
alias b="git checkout" | |
alias dps="docker ps" | |
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 | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_PROMPT_ADD_NEWLINE=false | |
SPACESHIP_CHAR_SYMBOL="❯" | |
SPACESHIP_CHAR_SUFFIX=" " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment