dotfiles/home/.config/shell
ItsDrike 02237fd0b1
Don't re-run work_directory function
- Re-reunning work_directory every time we redraw the prompt isn't
  necessary, since the function is here to generate the zsh supported
  syntax for the prompt that will get expanded into a work directory
  automatically.
- The function is only here to determine whether we're in TTY and use
  ASCII compatible symbols if we are, however it is enough to only check
  this once initially, since we can't leave TTY in favor of a graphical
  instance without reloading the rc file and neither can we leave.
- However, this function also checks for `USE_SHORTENED_WORKDIR`
  variable and decides which prompt to show based on it. This means that
  it someone was setting this variable in their profile file it would
  now no longer be respected, however this was never the intention of
  that variable, if a change is desired, the variable should simply be
  edited in the prompt file directly.
- Removing continual calls to this function each time prompt is redrawn
  is worth the very minor inconvenience of no longer supporting
  shortened workdirs from externally set variable due to the speed
  benefit it gives us, though not that noticeable, it is pretty
  significant. Not to mention that this wasn't intended/recommended
  usage anyway.
2021-12-18 04:46:02 +01:00
..
aliases Also add ppy alias for default pyhton version 2021-12-18 03:21:23 +01:00
environment Add some further XDG env variables 2021-10-03 10:10:40 +02:00
functions Use ternary conditionals 2021-07-20 23:10:46 +02:00
handlers Define exports in profile, rename sh to shell 2021-07-14 19:11:50 +02:00
keybinds Update kybinds 2021-07-20 23:11:18 +02:00
profile Move PATH extension to profile 2021-07-22 00:16:41 +02:00
prompt Don't re-run work_directory function 2021-12-18 04:46:02 +01:00