-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
40 lines (36 loc) · 1.8 KB
/
Copy pathbashrc
File metadata and controls
40 lines (36 loc) · 1.8 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
# ~/.bashrc — sourced by interactive bash sessions in the tcm container.
# Lives at /app/.bashrc in the image; see Dockerfile for the COPY step.
# ---- terminal + color ------------------------------------------------------
export TERM=xterm-256color
export CLICOLOR=1
alias ls='ls --color=auto'
alias ll='ls -lh --color=auto'
alias la='ls -lAh --color=auto'
alias l='ls -CF --color=auto'
alias grep='grep --color=auto'
alias ..='cd ..'
# ---- history ---------------------------------------------------------------
export HISTSIZE=2000
export HISTFILESIZE=5000
export HISTCONTROL=ignoredups:erasedups
shopt -s histappend
shopt -s checkwinsize
# ---- prompt ----------------------------------------------------------------
# green "tcm" container indicator, then cyan workdir, then "$".
PS1='\[\e[1;32m\]tcm\[\e[0m\] \[\e[1;36m\]\w\[\e[0m\] \$ '
# ---- welcome banner (shown once per shell tree) ----------------------------
if [ -z "$TCM_BANNER_SHOWN" ]; then
export TCM_BANNER_SHOWN=1
printf '\n'
printf ' \e[1;32mTA-to-course match — interactive shell\e[0m\n'
printf ' \e[2m──────────────────────────────────────────────────────────\e[0m\n'
printf ' Common commands:\n'
printf ' \e[1mtcm --help\e[0m list subcommands\n'
printf ' \e[1mtcm validate <cycle>\e[0m check inputs before solving\n'
printf ' \e[1mtcm solve <cycle>\e[0m run the solver\n'
printf ' \e[1mtcm demo\e[0m end-to-end on synthetic data\n'
printf '\n'
printf ' Cycles live under \e[1;36mdata/\e[0m (bind-mounted from host)\n'
printf ' Results land in \e[1;36mresults/<cycle>/run-<timestamp>/\e[0m\n'
printf '\n'
fi