[shell] moved to a single directory + alias.sh

This commit is contained in:
2024-07-28 16:18:45 +03:00
parent 2de1ebcfef
commit 9876c30d6d
4 changed files with 6 additions and 2 deletions

21
shell/zsh/zshrc Normal file
View File

@@ -0,0 +1,21 @@
source ~/.dotfiles/shell/alias.sh
eval "$(/opt/homebrew/bin/brew shellenv)"
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
setopt appendhistory # Append history to the history file (no overwriting)
setopt incappendhistory # Immediately append to the history file, not just when a term is killed
setopt histignoredups
source ~/.dotfiles/git/git-prompt.sh
setopt PROMPT_SUBST ; PS1='%n@%m %c$(__git_ps1 " [%s]")\$ '
if [ -f ~/.zshrc_local ]
then
source ~/.zshrc_local
fi