39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# 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
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
# oh-my-zsh
|
|
export ZSH="/home/marc/.config/oh-my-zsh"
|
|
plugins=(git
|
|
zsh-autosuggestions
|
|
zsh-syntax-highlighting
|
|
zsh-history-substring-search
|
|
zsh-completions)
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# Variables
|
|
## Path
|
|
export PATH=/home/marc/.emacs.d/bin:$PATH
|
|
export PATH=/home/marc/.local/bin:$PATH
|
|
|
|
# Aliases
|
|
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
alias ll='ls -al'
|
|
|
|
## git
|
|
alias gs='git status'
|
|
alias gd='git diff'
|
|
alias gdom='git diff origin/master'
|
|
alias gc='git commit'
|
|
alias gm='git merge'
|
|
alias gpull='git pull'
|
|
alias gpush='git push'
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|