Update README.md

This commit is contained in:
augustin64 2023-12-23 15:30:28 +01:00
parent bef72df794
commit 12f0be2a50

View File

@ -7,7 +7,7 @@
2020: ***~..................... 2020: ***~.....................
2021: *******~~~............... 2021: *******~~~...............
2022: ***************~.*..*.... 2022: ***************~.*..*....
2023: **********............... 2023: **********************~..
.: nothing .: nothing
~: 1 star ~: 1 star
@ -20,9 +20,17 @@ Add this to your `.bashrc`:
AOC_PATH=$HOME/path/to/this/repo/ AOC_PATH=$HOME/path/to/this/repo/
alias aoc="$AOC_PATH/utils/cli.py" alias aoc="$AOC_PATH/utils/cli.py"
aoc-new () { aoc-new () {
# To create a new day
cd $AOC_PATH cd $AOC_PATH
PATH="$PATH:$AOC_PATH" PATH="$PATH:$AOC_PATH"
$AOC_PATH/new_day.sh $AOC_PATH/utils/new_day.sh
PS1="$PS1[aoc] " export PYTHONPATH="$PYTHONPATH:$AOC_PATH"
}
aoc-env () {
# To load the AoC environment
cd $AOC_PATH
PATH="$PATH:$AOC_PATH"
export PYTHONPATH="$PYTHONPATH:$AOC_PATH"
} }
``` ```