-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwork_bashrc
More file actions
executable file
·94 lines (83 loc) · 2.98 KB
/
Copy pathwork_bashrc
File metadata and controls
executable file
·94 lines (83 loc) · 2.98 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
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
shopt -s nocaseglob
set -o vi
export JAVA_HOME=$(/usr/libexec/java_home)
export GRADLE_HOME=/usr/local/bin/gradle
export WORKSPACE=~/src/github.homedepot.com
export CLICOLOR=1
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
eval $(gdircolors -b ~/.dir_colors)
#keep infinite command history
set HISTFILESIZE=-1
set HISTSIZE=-1
PATH=$PATH:~/bin
# run scripts
alias vi="vim"
alias virc="vim ~/.vimrc"
alias gf="~/scripts/getfiles"
alias wg="workin BQ_to_Graphite"
alias wf="workin Flatiron"
# make commands nicer
#alias ls="ls --color"
alias ls='gls --color=auto'
alias ll="ls -l"
alias la="ls -lah"
alias cgrep="grep --color=always"
alias rscp="rsync -aP" # cp with progress status
alias rsmv="rsync -aP --remove-source-files" # mv with progress status
alias gpom="git push origin master"
alias github="cd ~/src/github.homedepot.com/"
alias cyberark="cd ~/src/github.homedepot.com/cyberark-helpers/"
alias tls="tmux ls"
alias tatt="tmux att -t"
alias tkill="tmux kill-ses -t"
alias dstopall='docker stop $(docker ps -a -q)'
alias dremall='docker rm -f $(docker ps -a -q)'
alias drmiall='docker rmi -f $(docker images -q)'
alias di="docker exec -it"
alias de="docker exec"
alias dim="docker images"
alias dps="docker ps -a --format 'table {{.Names}}\t{{.Image}}\t{{.RunningFor}} ago\t {{.Status}}'"
alias dl="docker logs -f"
alias ds='docker stats $(docker ps --format={{.Names}})'
alias ctop='docker run --rm -ti --name=ctop -v /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest'
alias dive='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive:latest'
# pip hack????
alias pip="python -m pip"
# tmux magic
REMOTESESSION="remote"
REFSESSION="reference"
DEVSESSION="dev"
tmux has-session -t $REFSESSION &>/dev/null
if [ $? != 0 ]
then
tmux new-session -s $REFSESSION -d
tmux rename-window -t 0 "cheatsheets"
tmux send-keys -t $REFSESSION "cat ~/tmuxcheatsheet" C-m
tmux split-window -t $REFSESSION -h
tmux send-keys -t $REFSESSION "cat ~/vimcheatsheet" C-m
fi
tmux has-session -t $DEVSESSION &>/dev/null
if [ $? != 0 ]
then
tmux new-session -s $DEVSESSION -d
tmux rename-window -t 0 "coding stuff"
tmux send-keys -t $DEVSESSION "github" C-m
tmux split-window -t $DEVSESSION -h
tmux send-keys -t $DEVSESSION "github" C-m
tmux new-window -n "pcf stuff"
fi
tmux has-session -t $REMOTESESSION &>/dev/null
if [ $? != 0 ]
then
tmux new-session -s $REMOTESESSION -d
tmux rename-window -t 0 "cplisa17"
tmux send-keys -t $REMOTESESSION "cyberark" C-m
tmux send-keys -t $REMOTESESSION "./cyber-cplisa17" C-m
tmux new-window -n "store1"
tmux send-keys -t $REMOTESESSION "cyberark" C-m
tmux attach -t $REMOTESESSION
fi
complete -C /Users/dxb6828/bin/vault vault