-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
46 lines (36 loc) · 1.03 KB
/
Copy pathdot_bashrc
File metadata and controls
46 lines (36 loc) · 1.03 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
#!/usr/bin/env bash
source "$HOME"/.shellrc
HISTFILESIZE=-1
HISTSIZE=-1
HISTCONTROL=ignoreboth
shopt -u histappend
if [ -f /usr/share/bash-completion/completions/git ]; then
source /usr/share/bash-completion/completions/git
__git_complete gap _git_add
__git_complete gb _git_branch
__git_complete gca _git_commit
__git_complete gco _git_checkout
__git_complete gcp _git_checkout
__git_complete gcv _git_commit
__git_complete gd _git_diff
__git_complete gfo _git_fetch
__git_complete gpu _git_push
__git_complete grc _git_rebase
__git_complete gs _git_status
fi
if command -v b4 > /dev/null 2>&1; then
eval "$(b4 --print-completion bash)"
fi
if command -v codex >/dev/null 2>&1; then
eval "$(codex completion bash)"
fi
if command -v direnv >/dev/null 2>&1; then
eval "$(direnv hook bash)"
fi
if command -v mise >/dev/null 2>&1; then
eval "$(mise activate bash)"
fi
# OpenAI shrc (if customising, comment out to prevent it getting readded)
# for file in "/Users/tamird/.openai/shrc"/*; do
# source "$file"
# done