-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
96 lines (77 loc) · 2.85 KB
/
.bash_profile
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
source ~/.bash_completions
# automatically add keys to ssh-agent
#
{
eval $(ssh-agent)
ssh-add -A
} &>/dev/null
# get correct colorscheme on tmux
alias tmux="TERM=screen-256color-bce tmux"
VISUAL=vim
export VISUAL
EDITOR=vim
export EDITOR
alias k="kubectl"
# cirrus shortcuts
alias cirrusweb="cd ~/src/cirrusmd/cirrusmd-web-app"
alias cirrusws="cd ~/src/cirrusmd/websocket-server/"
alias cirrusetl="cd ~/src/cirrusmd/etl-platform/"
alias splitcsv="~/src/cirrusmd/etl-platform/script/splitcsv"
export AWS_CONFIG_FILE='~/.awscli-config'
# Tell ls to be colorful
export CLICOLOR=1
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
export PS2="\[\033[1;92m\]\u@\h : \w > \[\033[0m\]"
################# COLOR SETTINGS ######################
#######################################################
# Color settings for bash
export TERM=xterm-256color
export GREP_OPTIONS='--color=auto' GREP_COLOR='0;36'
export CLICOLOR=1
# The order of the attributes are as follows (fgbg):
# 01. directory
# 02. symbolic link
# 03. socket
# 04. pipe
# 05. executable
# 06. block special
# 07. character special
# 08. executable with setuid bit set
# 09. executable with setgid bit set
# 10. directory writable to others, with sticky bit
# 11. directory writable to others, without sticky bit
# LSCOLORS=0102030405060708091011
export LSCOLORS=excxgxfxbxdxbxbxbxexex
# Color | Escaped | ANSI
# -------------- | ---------- | ------------
# No Color | \033[0m | x (default foreground)
# Black | \033[0;30m | a
# Grey | \033[1;30m | A
# Red | \033[0;31m | b
# Bright Red | \033[1;31m | B
# Green | \033[0;32m | c
# Bright Green | \033[1;32m | C
# Brown | \033[0;33m | d
# Yellow | \033[1;33m | D
# Blue | \033[0;34m | e
# Bright Blue | \033[1;34m | E
# Magenta | \033[0;35m | f
# Bright Magenta | \033[1;35m | F
# Cyan | \033[0;36m | g
# Bright Cyan | \033[1;36m | G
# Bright Grey | \033[0;37m | h
# White | \033[1;37m | H
parse_git_branch() {
__git_ps1 " [%s]"
}
export GIT_PS1_SHOWDIRTYSTATE='true'
export PS1="\[\033[35m\][\h\[\033[00m\]\[\033[35m\]] \[\033[34m\]\W\[\033[32m\]\[\033[31m\]\$(__git_ps1 \" [%s]\")\[\033[00m\] \[\033[0m\]"
export PS2="\[\033[35m\]→ \[\033[0m\]"
# PATH modifications
export PATH="/usr/local/bin:/usr/local/sbin:$GOBIN:$HOME/.cargo/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/flutter/bin"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/davidnix/Downloads/google-cloud-sdk/path.bash.inc' ]; then . '/Users/davidnix/Downloads/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/davidnix/Downloads/google-cloud-sdk/completion.bash.inc' ]; then . '/Users/davidnix/Downloads/google-cloud-sdk/completion.bash.inc'; fi
export PATH="$HOME/.cargo/bin:$PATH"