-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
51 lines (39 loc) · 1.39 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
#!/bin/zsh
export CLICOLOR=YES
alias ll="ls -la"
alias python="python3"
alias pip="pip3"
# SQLite
export PATH="/usr/local/opt/sqlite/bin:$PATH"
# OpenSSL
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH="/usr/local/opt/icu4c/bin:$PATH"
export PATH="/usr/local/opt/icu4c/sbin:$PATH"
# Local Bin
export PATH="$PATH:/Users/ezmac/.local/bin"
# Cargo and Rust
#export PATH="$PATH:~/.cargo/bin"
# HomeBrew Setup
export PATH="/opt/homebrew/bin:$PATH"
#alias pip=/usr/local/bin/pip3
export PATH="/usr/local/opt/unzip/bin:$PATH"
# Ensure vim is default editor
export EDITOR=vim
# custom alias for bash
alias hs='history | grep -i'
alias ls='ls -G'
alias genpasswd='openssl rand -base64'
alias sshls="grep Host ~/.ssh/config"
alias sshconfig="less ~/.ssh/config"
alias listallcli="ls /usr/bin | xargs whatis | grep -v nothing | less"
alias TodayWeather="curl wttr.in/$1"
# Install vim Plug
alias InstallPlug="curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
# Search commandlinefu.com from the command line using the API
cmdfu(){
curl -L "http://www.commandlinefu.com/commands/matching/$@/$(echo -n $@ | openssl base64)/plaintext";
}
alias cpp11="g++ -Wall --std=c++11"
alias cpp14="g++ -Wall --std=c++14"
alias cpp17="g++ -Wall --std=c++17"
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"