This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
forked from buritica/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
64 lines (50 loc) · 1.43 KB
/
dot_zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Path to your oh-my-zsh installation.
export ZSH="/Users/buritica/.oh-my-zsh"
# Set name of the theme to load.
ZSH_THEME="geoffgarside"
# oh-my-zsh plugins
plugins=(
git git-extras github \
macos \
cp copypath copyfile \
npm \
)
# source other profile files
source $ZSH/oh-my-zsh.sh
# buriti.ca configuration
# Load the shell dotfiles, and then some:
for file in ~/.my/.{exports,aliases,functions}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# i like skulls
contains $HOST "crowntail" && export PS1="🏡 $PS1"
contains $HOST "deltatail" && export PS1="💼 $PS1"
contains $HOST "halfmoon" && export PS1="🎥 $PS1"
contains $HOST "test" && export PS1="🔬 $PS1"
export PS1="💀 $PS1"
# file size limit
ulimit -n 10000
# enable direnv
if hash direnv 2>/dev/null; then
eval "$(direnv hook zsh)"
fi
# Append `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH";
# Prepend `/usr/local/sbin` to the `$PATH`
export PATH="/usr/local/sbin:$PATH"
# add brew bin to path if m1
if [[ $(uname -m) == 'arm64' ]]; then
eval $(/opt/homebrew/bin/brew shellenv)
fi
# add nodenv to the `$PATH`
if hash nodenv 2>/dev/null; then
eval "$(nodenv init -)"
fi
# Add tab completion for many Bash commands
if which brew > /dev/null && [ -f "$(brew --prefix)/etc/bash_completion" ]; then
source "$(brew --prefix)/etc/bash_completion";
elif [ -f /etc/bash_completion ]; then
source /etc/bash_completion;
fi;
echo "dotfiles sourced"