-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
64 lines (46 loc) · 1.97 KB
/
Copy path.zshrc
File metadata and controls
64 lines (46 loc) · 1.97 KB
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
ZSH_DISABLE_COMPFIX=true
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Aliases
alias zshconfig="code ~/.zshrc"
alias ohmyzsh="code ~/.oh-my-zsh"
alias gitconfig="code ~/.gitconfig"
alias starshipconfig="code ~/.config/starship.toml"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias mv='mv -iv'
alias rm='rm -i -v'
alias cp='cp -iv'
alias ls='eza -l --git --icons --time-style=long-iso --header'
alias ghdeploy="gh workflow run && sleep 5 && gh run watch"
# weather and the moon
alias weather='curl -4 http://wttr.in/Boston'
alias moon='curl -4 http://wttr.in/Moon'
# Enable aliases to be sudo’ed
alias sudo='sudo '
alias downloads="cd ~/Downloads"
alias documents="cd ~/Documents"
alias desktop="cd ~/Desktop"
alias sites="cd ~/Sites"
alias flushdns="dscacheutil -flushcache && killall -HUP mDNSResponder"
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to clipboard.'"
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"
alias hosts='code /etc/hosts'
# Create a new directory and enter it
function mkd() {
mkdir -p "$@" && cd "$_";
}
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(macos git github git-extras)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
NODE_PATH="$HOME/.npm-packages/lib/node_modules:$NODE_PATH"
export PATH=$HOME/.npm-packages/bin:$HOME/.rvm/bin:/usr/local/bin:$PATH:$HOME/.rvm/bin/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/:/Users/fleeting/Library/Python/2.7/bin:/Users/fleeting/Library/Python/2.7/lib/python/site-packages:~/.composer/vendor/bin:$HOME/bazel/output:/Users/fleeting/.composer
# Starship - https://starship.rs
eval "$(starship init zsh)"
eval "$(atuin init zsh)"
echo "$(starwars-cli --style box)"