Repository navigation
Expand file tree
/
Copy pathbashrc
More file actions
42 lines (32 loc) · 1.46 KB
/
Copy pathbashrc
File metadata and controls
42 lines (32 loc) · 1.46 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
# Add colors to Terminal for OneDark theme
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Add homebrew to path
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="/usr/local/sbin:$PATH"
# Enable bash completion
[[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"
# Make 'thefuck' more SFW
eval $(thefuck --alias crap)
# Env vars for Go
export GOPRIVATE=github.com/Countingup
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# Bash completion for Countingup makefiles
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' .build-toolkit/service.mk | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make
alias flush-dns='sudo killall -HUP mDNSResponder'
alias ecr-login='aws ecr get-login-password --profile production_dev | docker login -u AWS --password-stdin https://962837472839.dkr.ecr.eu-west-2.amazonaws.com'
alias ll='ls -l'
alias docker-time='docker run --rm --privileged alpine hwclock -s'
alias wget='curl -O'
# Git aware prompt, with emoji!
export GIT_PS1_SHOWDIRTYSTATE=1
export PS1='\h:\W $(if [[ $USER == mike.moate ]]; then echo "🤖 "; fi)$(__git_ps1 "(%s)") \$ '
# FNM (https://github.com/Schniz/fnm)
eval "$(fnm env --use-on-cd --shell bash)"
# Android SDK
export ANDROID_SDK=/Users/mikemoate/Android/Sdk
export PATH=/Users/mikemoate/Library/Android/sdk/platform-tools:$PATH
# EAS
export EAS_BUILD=true