-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.bashrc
49 lines (44 loc) · 1.7 KB
/
example.bashrc
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
# ~/.bashrc
# Control flow, assuming invoked as bash without --posix:
# login: /etc/profile
# login: first_found( ~/.bash_profile ~/.bash_login ~/.profile )
# interactive-!login: ~/.bashrc
# #!|!interactive: if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi (no $PATH)
# <use>
# login: ~/.bash_logout
# Interactive shells have 'i' included in $-
# This is bashrc so _should_ be always interactive (see above) but people do
# things like source this file in other contexts.
# Guard against common practice instead of demanding adherence to an ideal.
#
if [[ $- == *i* ]]; then
# anything which sets PS1 or emits output, or controls user interaction, here
PS1='$?:\u@\h[\A](\!)\w\$ '
# Avoid storing in history lines starting with space:
HISTCONTROL='ignorespace'
fi
# Other setup
alias ..='cd ..'
alias z='exec zsh -l'
# ######################################################################
# Final banner
# We guard on being interactive again, and then emit whatever we think
# will help our future forgetful selves remember Things Which Matter when
# dealing with Keybase in our setup.
if [[ $- == *i* ]]; then
cat >&2 <<'EOBANNER'
This is a Docker Keybase container.
Run:
- run_keybase : to start the service
- keybase.is-up-to-date : to check if a newer release is available
- z : to use zsh
Git repositories are checked out as: ~/repos/$TEAM/$REPO/
KeybaseFS is mounted by `run_keybase`, as /keybase :
- /keybase/public/YOUR_KEYBASE_HANDLE/
+ Eg: <memos to self go here>
- /keybase/public/$FOLLOWEE/
- /keybase/team/$TEAM/
+ Eg: /keybase/team/exim/maintainers-keyring.asc
- /keybase/private/$COMBINATIONS/
EOBANNER
fi