forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
64 lines (50 loc) · 2.08 KB
/
.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
CACHE_PATH="$HOME/.cache"
DOTFILES="$HOME/.dotfiles"
# Create the .cache directory if it doesn't exist
[[ -d $CACHE_PATH ]] || mkdir -p $CACHE_PATH
# Set the ZSH compdump cache directory
ZSH_COMPDUMP_PATH="$CACHE_PATH/zsh/zcompdump"
ZSH_COMPDUMP="$ZSH_COMPDUMP_PATH/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
# Create the ZSH compdump cache if it doesn't exist
[[ -d $ZSH_COMPDUMP_PATH ]] || mkdir -p $ZSH_COMPDUMP_PATH
ZSH_COMPDUMP_FILES=($ZSH_COMPDUMP_PATH/zcompdum(Nm-20))
if (( $#ZSH_COMPDUMP_FILES )); then
autoload -Uz compinit -C -d $ZSH_COMPDUMP
else
autoload -Uz compinit -d $ZSH_COMPDUMP
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/opt/homebrew/bin:$PATH"
export PATH="$PATH:$HOME/.composer/vendor/bin"
# Path to your oh-my-zsh installation.
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="robbyrussell"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# 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)
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 the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
alias zshconfig="code ~/.zshrc"
alias update="brew update && brew upgrade && composer global update"
alias copyssh="pbcopy < $HOME/.ssh/id_ed25519.pub"
alias reload="exec $SHELL"
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"
alias cl="clear"
# Directories
alias dotfiles="cd $DOTFILES"
# Laravel
alias artisan="php artisan"
alias tinker="artisan tinker"
alias seed="artisan db:seed"
alias migrate="artisan migrate"