Commit graph

12 commits

Author SHA1 Message Date
ItsDrike a3e01caebf
Initial commit 2022-11-20 03:14:18 +01:00
ItsDrike b912871070
Remove everything and restart blank
This commit removes all files currently present in the repo, to prepare
for a start from a nothing. This is done due to my recent migration from
X11 to Wayland, which has rendered most of these config files no longer
releveant.

I've currently been tracking my dotfiles in a separate repository, in
hopes to get it to a state where it would be mergable here, but that
turned out to be much more difficult than I anticipated, and I think it
will be much easier to simply move over the history from this temporary
repository I've been using onto this one. That however requires a start
from a clean point, which this commit creates.
2022-11-20 03:07:41 +01:00
ItsDrike 826cef4e6e
POSIX compliance, shellcheck 2021-12-18 18:09:25 +01:00
ItsDrike d843e90462
Use spaces instead of tabs 2021-12-18 18:07:47 +01:00
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
ItsDrike bb0d435321
Add a note about dangers of using ↵ symbol 2021-12-15 22:09:43 +01:00
ItsDrike fd57706a2f
Minor fixes 2021-12-15 22:08:59 +01:00
ItsDrike 39a66f0e30
Hide errors if git status fails 2021-12-15 22:08:01 +01:00
ItsDrike 4f6e9f8127
Support milisecond precision 2021-08-13 14:04:20 +02:00
ItsDrike ac8f461bc8
Move command runtime to left prompt 2021-08-13 12:31:39 +02:00
ItsDrike 77b4308c13
Add option to show command runtime 2021-08-13 12:31:10 +02:00
ItsDrike a6161d402a
Define exports in profile, rename sh to shell 2021-07-14 19:11:50 +02:00
Renamed from home/.config/sh/prompt (Browse further)