Rafael Lopez
9c9c92bf31
themes/agnoster : Detect and show pyenv information ( #458 )
...
- if pyenv is not initialized, fall back to the virtualenv detection
- when pyenv is set to a version other than "system", show the version number
- when pyenv is in virtulenv mode, also display the virtualenv's name
Co-authored-by: Koichi Murase <myoga.murase@gmail.com >
2023-07-26 17:44:51 +09:00
Edwin Kofler
0c07172c02
fix: Fix quoting
...
Co-authored-by: Koichi Muarse <myoga.murase@gmail.com >
2023-04-16 18:23:22 +09:00
David Dreggors
bea5dc9406
lib, themes: Preserve users' PROMPT_DIRTRIM
...
These changes in "themes/{agnoster,roderik,vscode}.sh" and "lib/shopt.sh" will
allow a user to set the PROMPT_DIRTRIM variable in their .bashrc and change the
prompt path length.
Co-authored-by: Koichi Murase <myoga.murase@gmail.com >
2023-04-09 14:23:23 -07:00
Mihir Patel
aabc172d7a
themes/agnoster: Fix "command not found" error caused by #118 ( Fix #429 )
...
This is a regression by PR #118 on GitHub [1]. `git_status_dirty` and
`git_stash_dirty` are functions and not external commands.
[1] https://github.com/ohmybash/oh-my-bash/pull/118
2023-04-05 15:22:33 +09:00
Koichi Murase
897876eae1
global: Use "command" to run "git" and "svn"
2023-04-05 10:35:11 +09:00
Edwin Kofler
80b4974044
fix: Small syntax improvements ( #424 )
2023-04-02 03:02:29 +09:00
Koichi Murase
f085e5718d
themes/agnoster: Refactor the new codes
2023-02-16 16:35:59 +09:00
Koichi Murase
a6b655b136
themes/agnoster: Change indentation
2023-02-16 16:35:59 +09:00
Koichi Murase
8c2f1d5049
themes/agnoster: Incorporate recent changes of the upstream
...
5c79b669bc...1165d1b3f1
2023-02-16 16:35:59 +09:00
Koichi Murase
3d426eb926
themes/agnoster: Add proper copyright notices
2023-02-16 16:07:59 +09:00
Koichi Murase
2d51ceacb0
themes/absimple: Reuse codes from the "agnoster" theme
2023-02-12 15:13:29 +09:00
Koichi Murase
ec88f62aa3
themes/agnoster: Refactor prompt_{virtual,conda}env
2023-02-12 14:50:58 +09:00
Koichi Murase
f52e91e119
themes/agnoster: Support OMB_PROMPT_SHOW_PYTHON_VENV
2023-02-12 14:33:25 +09:00
baocheny
cf2a130624
themes/agnoster: Add condaenv prompt
...
Co-authored-by: Koichi Murase <myoga.murase@gmail.com >
2023-02-12 14:23:46 +09:00
Koichi Murase
59f6ef145b
global: Switch the function-declarations to avoid unexpected alias expansions
2023-02-10 00:38:56 +09:00
Koichi Murase
7f420263b2
themes: Make PROMPT_COMMAND usage consistent for reloading OMB
2022-01-15 19:14:30 +09:00
Koichi Murase
c3bcc5c6d2
refactor: Normalize shebang of scripts to source
2022-01-15 19:00:35 +09:00
Koichi Murase
3d2b35a3eb
refactor: Replace invalid shebang lines
2022-01-15 15:46:11 +09:00
Koichi Murase
abff767533
fix: Correct executable bit in permissions
2022-01-15 15:29:41 +09:00
Koichi Murase
8780308a4f
themes: Fix wrong usage of command substitutions in conditions
2022-01-08 15:34:05 +09:00
Jacob Hrbek
a085f452fb
themes/agnoster: Use the POSIX command substitutions
...
Co-authored-by: Koichi Murase <myoga.murase@gmail.com >
2022-01-08 15:34:05 +09:00
Jay Vercellone
c308e0821e
themes/agnoster: Prompt broken when using pyenv ( #176 ) ( #177 )
...
* Make sure that the output of `python --version` is always captured.
* Refactor logic to extract Python version using `awk` instead of a
for-loop.
Fixes #176
2020-09-27 22:08:13 +07:00
lucasgnavarro
749823b78f
themes/agnoster: Changes in prompt_virtualenv() function in order to show the python version and not the folder name. ( #147 )
2020-06-11 15:38:32 +07:00
Kreyren
429ffc1cbc
oh-my-bash.sh : Fix for #70 #59 ( #71 )
...
* oh-my-bash.sh : Fix for #70
* Future proofing
* Fixed symlink for agnoster-bash.theme.sh
* Reaction on https://github.com/ohmybash/oh-my-bash/pull/71#discussion_r307617303
2019-07-31 16:13:08 +07:00