···4646 "waybar": HOME / ".config" / "waybar",
4747 "starship/starship.toml": HOME / ".config" / "starship.toml",
4848 "keyd/default.conf": Path("/etc/keyd/default.conf"),
4949+ "ipython/ipython_config.py": HOME / ".ipython/profile_default/startup/ipython_config.py"
4950}
50515152REPO_DIR = Path(__file__).resolve().parent
+17
ipython/ipython_config.py
···11+import datetime as dt
22+from pathlib import Path
33+44+# The name of the logfile to use.
55+logfile_dir = Path('~/projects/ipython-logs').expanduser()
66+logfile_dir.mkdir(parents=True, exist_ok=True)
77+now = dt.datetime.now().astimezone()
88+logfile_fn = logfile_dir / f'automatic-log--{now:%Y-%m-%dT%H-%M-%Z}.py'
99+# make sure file exists
1010+logfile_fn.touch()
1111+1212+# set the logfile
1313+c.TerminalInteractiveShell.logfile = logfile_fn
1414+1515+1616+# Start logging to the default log file.
1717+c.TerminalInteractiveShell.logstart = True