-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
49 lines (39 loc) · 1.3 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
#!/usr/bin/env sh
# Shell
export PS1="%F{blue}%n%f %F{green}@%m%f %F{red}%~/%f"
alias la='ls -Gla'
# Apple
alias dsclean='find . -name .DS_Store -type f -print -delete'
alias xclean='xattr -c'
# AWS
alias lsbucket='aws s3 ls'
# Docker
dockerbash="$HOME/code/shell/dockerbash"
alias drbake="$dockerbash/bin/bake"
alias drclean="$dockerbash/bin/clean"
alias drdelete="$dockerbash/bin/delete"
alias drkill="$dockerbash/bin/kill"
alias drrunit="$dockerbash/bin/runit"
alias drshow="$dockerbash/bin/show"
# Git
alias githero='git log --graph --decorate --simplify-by-decoration --all'
alias gitshow='git fetch --all; git branch --list --all; git status;'
alias gittree='git ls-tree -r --full-tree --name-only HEAD'
# Java
export JAVA_HOME="$(/usr/libexec/java_home -v 11)"
alias javas='/usr/libexec/java_home --verbose'
# Python
alias applepy='/usr/bin/python'
alias blackbox="$HOME/code/shell/blackbox/blackbox"
alias condapy='/usr/local/anaconda3/bin/python'
alias condapip='/usr/local/anaconda3/bin/pip'
# Q
alias q='rlwrap --complete-filenames --remember "$QHOME"/m32/q'
export QHOME="$HOME/q"
# Readers
# alias readcsv="open -a 'Easy CSV Editor'"
# alias readhex="open -a 'Hex Fiend'"
# alias readjson="open -a 'JSON Editor'"
# alias readmd="open -a 'Marked 2'"
# https://github.com/nvbn/thefuck
eval "$(thefuck --alias)"