-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
executable file
·38 lines (26 loc) · 819 Bytes
/
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
# Add MacPorts
export PATH=/opt/local/bin:$PATH
# Add rbenv to ZSH so that it loads every time you open a terminal
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# Edit
alias rc='nvim ~/.zshrc'
# Reload
alias src='source ~/.zshrc'
# Git
alias g='git'
# Output all files
alias ls='ls -a'
# Clear screen
alias c='clear'
# Remove history file
alias remove-history='rm ~/.zsh_history'
# Start a PHP server in the current directory
alias serve='php -S localhost:8000'
# Go to `Sites` directory on iCloud Drive
alias sites='cd /Users/advaitchaitanya/Library/Mobile\ Documents/com~apple~CloudDocs/Sites/'
# Build and serve a Jekyll site
alias js='bundle exec jekyll serve'
# Erase current session history
function erase_history { local HISTSIZE=0; }
# Starship init script
eval "$(starship init zsh)"