aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-06-07Make adam3 more backwards compatibleHEADmasterDennis Eriksen1-8/+9
Older versions of zsh (<5.0.6) don't like the ternary %() inside a start-color (%F{}), but will allept it the other way around. Also, zsh <5.1 don't like setting arrays on the same line as local/typeset
2024-02-28use emulate zsh with -L and -R instead of setoptDennis Eriksen1-2/+4
emulate -L zsh sets local_options, local_patterns, and local_traps. With -R all options get reset, which is nice inside a function that runs as much as precmd
2023-12-12Fix errors in licenseDennis Eriksen1-1/+1
`prompt_adam3_setup` specified another license than what `LICENSE` did. Also renamed `LICENCE` to `LICENSE`
2023-10-22move venv after working dir and before gitDennis Eriksen1-5/+6
placing venv-info makes more sense with git-info
2023-10-22fix bug where dir was shown wronglyDennis Eriksen1-1/+1
in some edgecases working dir was shown weirdly. if working dir is less than five elements, just print all of it. restricting it to four elements has no effect, since when it reaches five elements it will be truncated.
2023-10-22Fix showing virtualenvDennis Eriksen1-11/+22
The time was misplaced when showing virtualenv on smaller screens. Should be fixed now. Also added a variable to change the color of the virtualenv
2023-01-11show user@host when rootDennis Eriksen1-2/+2
2023-01-11Making prompt more customizable.Dennis Eriksen1-12/+45
Adding globals for more stuff, so everything can be customized. Also, no longer show user@host if on localhost. Only show if using ssh.
2023-01-06Apparently %* does not zero-pad the hours. I want zero-padding.Dennis Eriksen1-2/+2
2023-01-04made it possible to specify both fore- and background color, AND boldness. ↵Dennis Eriksen1-35/+63
Also, added SHLVL when it gets higher than 10
2023-01-02Added new way to calculate the value of the hostnameDennis Eriksen1-60/+41
Added a simpler and more elegant way to find a numeric value of the hostname. Also, moved a few things around.
2023-01-02change the way we assemble the prompt. Now we cas measure the length and ↵Dennis Eriksen1-29/+40
slip into double-line-mode when the prompt exceeds 50% of the terminal
2023-01-01rewriting prompt. wipDennis Eriksen1-53/+105
Planning for better readability, better trunking of directories, and zero external dependencies.
2022-11-23check if variable is set in a proper wayDennis Eriksen1-1/+1
2022-11-23We need to initialize colors before we can use $reset_colorDennis Eriksen1-1/+2
2017-12-29add support for virtualenvDennis Eriksen1-0/+1
2017-06-06bugfixDennis Eriksen1-1/+1
2017-06-06bugfixDennis Eriksen1-1/+2
you can't initiate an array with "local" in front
2017-06-06bugfixesDennis Eriksen1-3/+3
2017-05-23adding status-codeDennis Eriksen1-0/+3
2017-05-23just reworking the codeDennis Eriksen1-29/+25
2016-12-26just added the possibility of using $ as promptcharDennis Eriksen1-0/+2
2016-06-08removed one too manyDennis Eriksen1-1/+1
2016-06-08moving the space againDennis Eriksen1-6/+6
2016-06-07attempting to clean up the git-bitDennis Eriksen1-9/+12
2016-05-20lets add some VCS infoDennis Eriksen1-7/+13
2016-05-20just adding more commentsDennis Eriksen1-0/+3
2016-05-20just adding a commentDennis Eriksen1-4/+5
2015-06-29make promptchar bold red if rootDennis Eriksen1-2/+7
2015-06-29adding some commentsDennis Eriksen1-5/+10
2015-06-29adding multicolouring based on hostnameDennis Eriksen1-18/+35
2015-06-29adding multicolouring based on hostnameDennis Eriksen1-18/+35
2015-06-29renaming to adam3, and adding a lincenceDennis Eriksen1-13/+13
2015-06-29adam3 is based upon adam1 from the zsh repoDennis Eriksen1-0/+54