-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
40 lines (27 loc) · 962 Bytes
/
INSTALL
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
# vim:nowrap:
#####################################
# Fonts
# [Nerd Fonts](https://www.nerdfonts.com)
# [Programming Fonts](https://www.programmingfonts.org)
# [Command Line](https://www.reddit.com/r/commandline/)
# [A list of new(ish) command line tools](https://jvns.ca/blog/2022/04/12/a-list-of-new-ish--command-line-tools/)
function extend_bashrc {
cat >> $HOME/.bashrc <<EOL
# User specific aliases and functions
[[ -e ~/.alias ]] && . ~/.alias || true
[[ -e ~/.bashrc.common ]] && . ~/.bashrc.common || true
[[ -e ~/.bashrc.specific ]] && . ~/.bashrc.specific || true
[[ -d ~/.bash_completion.d ]] && for f in ~/.bash_completion.d/*; do [[ -f "\$f" ]] && source \$f; done || true
EOL
}
function install_configs {
mkdir -p ~/.local/bin
cp ~/config/bin/ipynb_drop_output.py ~/.local/bin/
}
# On trixie, do:
# module load StdEnv/2020
# module load rust
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
install_configs
extend_bashrc
fi