Update .zshrc
This commit is contained in:
61
.zshrc
61
.zshrc
@@ -1,4 +1,3 @@
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
# 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.
|
||||
@@ -7,7 +6,6 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
||||
fi
|
||||
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
PATH=$PATH:/usr/local/bin/bin/
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
@@ -79,7 +77,11 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
# 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)
|
||||
plugins=(
|
||||
git
|
||||
zsh-syntax-highlighting
|
||||
zsh-autosuggestions
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
@@ -88,7 +90,7 @@ source $ZSH/oh-my-zsh.sh
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
export LANG=en_US.UTF-8
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
@@ -104,16 +106,6 @@ source $ZSH/oh-my-zsh.sh
|
||||
# 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"
|
||||
|
||||
# Text Highlighting
|
||||
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
|
||||
|
||||
# ----------------------
|
||||
# Git Aliases
|
||||
@@ -122,39 +114,20 @@ alias ga='git add'
|
||||
alias gaa='git add -A'
|
||||
alias gcm='git commit -m'
|
||||
alias gd='git diff'
|
||||
alias gpl='git pull'
|
||||
alias gp='git push'
|
||||
alias gp='git pull'
|
||||
alias gpsh='git push'
|
||||
alias gs='git status'
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# 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"
|
||||
|
||||
# Text Highlighting
|
||||
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
|
||||
|
||||
# ----------------------
|
||||
# Git Aliases
|
||||
# Python Aliases
|
||||
# ----------------------
|
||||
alias ga='git add'
|
||||
alias gaa='git add -A'
|
||||
alias gcm='git commit -m'
|
||||
alias gd='git diff'
|
||||
alias gpl='git pull'
|
||||
alias gp='git push'
|
||||
alias gs='git status'
|
||||
alias python='python3'
|
||||
|
||||
alias cat='bat'
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
# neofetch
|
||||
# macchina
|
||||
|
||||
|
||||
Reference in New Issue
Block a user