Alpha Chen
2249f9b289
add nix, cargo to zshenv
1 year ago
Alpha Chen
97b0c0f3ed
add terraform completion
1 year ago
Alpha Chen
f7a53d3c56
fzf additions
...
- `z` for fasd support
- `CTRL-G` for git changed files
1 year ago
Alpha Chen
c5cbda47f8
disable the default RPROMPT
1 year ago
Alpha Chen
d035ca94de
use `$commands` instead of `type` because it's faster
1 year ago
Alpha Chen
930c081e45
don't use kubectl autocompletion by default
...
```
num calls time self name [89/89]
-----------------------------------------------------------------------------------
1) 1 84.56 84.56 39.42% 84.37 84.37 39.33% __kubectl_bash_source
2) 1 55.07 55.07 25.67% 54.59 54.59 25.45% chruby_use
3) 5 74.61 14.92 34.78% 33.93 6.79 15.82% pmodload
4) 1 8.35 8.35 3.89% 8.24 8.24 3.84% _zsh_highlight_load_highlighters
5) 2 8.09 4.04 3.77% 8.09 4.04 3.77% _zsh_highlight_bind_widgets
6) 1 5.99 5.99 2.79% 5.99 5.99 2.79% prompt_pure_state_setup
7) 2 4.68 2.34 2.18% 4.68 2.34 2.18% promptinit
8) 1 4.09 4.09 1.91% 4.09 4.09 1.91% compinit
9) 18 2.73 0.15 1.27% 2.73 0.15 1.27% (anon)
10) 2 11.50 5.75 5.36% 2.19 1.09 1.02% prompt_pure_setup
11) 1 2.04 2.04 0.95% 2.04 2.04 0.95% async_init
12) 11 0.83 0.08 0.39% 0.83 0.08 0.39% add-zsh-hook
13) 2 2.75 1.37 1.28% 0.71 0.35 0.33% async
14) 1 0.48 0.48 0.22% 0.48 0.48 0.22% chruby_reset
15) 3 0.39 0.13 0.18% 0.39 0.13 0.18% is-at-least
16) 3 0.40 0.13 0.19% 0.34 0.11 0.16% add-zle-hook-widget
17) 1 0.27 0.27 0.12% 0.27 0.27 0.12% chruby_auto
18) 1 12.02 12.02 5.60% 0.13 0.13 0.06% set_prompt
19) 1 12.14 12.14 5.66% 0.12 0.12 0.05% prompt
20) 1 0.19 0.19 0.09% 0.10 0.10 0.05% complete
21) 1 0.09 0.09 0.04% 0.09 0.09 0.04% compdef
22) 1 55.14 55.14 25.70% 0.07 0.07 0.03% chruby
23) 1 0.03 0.03 0.01% 0.03 0.03 0.01% bashcompinit
24) 1 0.02 0.02 0.01% 0.02 0.02 0.01% is-callable
25) 2 0.01 0.00 0.00% 0.01 0.00 0.00% is-darwin
```
1 year ago
Alpha Chen
55eac23885
nix
1 year ago
Alpha Chen
12dd553901
add kubectl completions
1 year ago
Alpha Chen
74865d8a3c
use a module for docker completion
1 year ago
Alpha Chen
dcd1006fba
add custom completions
1 year ago
Alpha Chen
3e1ff06084
fix fzf alt-c command
1 year ago
Alpha Chen
31160ca822
add .local/bin to $PATH
1 year ago
Alpha Chen
c341a4c522
move aliases to rc, add tmux alias for better integration w/direnv
1 year ago
Alpha Chen
7e334944d3
fzf updates
1 year ago
Alpha Chen
aca0bff560
use double quotes
1 year ago
Alpha Chen
6796e72838
fzf
1 year ago
Alpha Chen
f9b3e3d886
use exa for ls
1 year ago
Alpha Chen
f1b9fe3f1f
move chruby to rc, add .dotfiles/bin
1 year ago
Alpha Chen
bf4eef892b
move PATH-modifying stuff to zshenv
1 year ago
Alpha Chen
10f69846a6
Fix tat session name cleaning
1 year ago
Alpha Chen
0bc142cd47
Sub all . for _ for tat
1 year ago
Alpha Chen
04385db056
Selecta support
...
68554d6965/.zshrc (L122)
1 year ago
Alpha Chen
20ba313c32
Add ~/bin to PATH
1 year ago
Alpha Chen
43f915c894
Sanitize tmux session names
1 year ago
Alpha Chen
9b61c20e83
Add Cargo bin to PATH
1 year ago
Alpha Chen
367315ca08
Move direnv and chruby hooks into zshrc
1 year ago
Alpha Chen
1e00e2fe70
Make eject function case-insensitive
1 year ago
Alpha Chen
f5036d011d
Re-enable automatic chruby-ing
1 year ago
Alpha Chen
39c76f1859
Fix up arrow through history
1 year ago
Alpha Chen
3c67f03bb2
Enable syntax highlighting and history substring matching
1 year ago
Alpha Chen
759b0c9b6d
Add a "plz" alias for "sudo"
1 year ago
Alpha Chen
755faeb09c
Add function for ejecting mounts
1 year ago
Alpha Chen
2d985a5cf6
initial personalization
1 year ago
Indrajit Raychaudhuri
8d00c51900
python: Remove pip completion from prezto local
...
pip completion is bundled with Zsh 5.9. Remove it from prezto local to
avoid shadowing the bundled completion.
2 years ago
Indrajit Raychaudhuri
8ee9d1bbfe
general: Documentation update for zstyle based alias skipping support
...
Add documentation to surface the `zstyle` based alias skipping.
2 years ago
Indrajit Raychaudhuri
5ca892d6af
history: Reformat inline comments
2 years ago
Indrajit Raychaudhuri
e14fdff4cb
history: Remove interim zstyle variables
2 years ago
Roman Perepelitsa
3c002f772e
prompt: update powerlevel10k submodule to v1.18.0
...
Release notes:
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.18.0
2 years ago
Indrajit Raychaudhuri
f7cb1fee1b
gnu-utility: Remove now obsolete egrep and fgrep
...
These were marked deprecated for a while and has now been marked
obsolete since gnu-grep 3.8 [1]. They have been removed from POSIX as
well [2].
[1] https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html
[2] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html#tag_20_55_18
2 years ago
Indrajit Raychaudhuri
52bf42f887
python: Expand Python command pattern per convention
...
Use `(i)python[0-9.]#` as subscript for commands associative array,
following the convention [1] of detection python more exhaustively.
[1] 858b8de3d7/Completion/Unix/Command/_python (L1)
2 years ago
Indrajit Raychaudhuri
8d895a70a5
history: Remove 'HISTFILE' path relocation warning
...
'HISTFILE' path relocation was done 2 years ago. It's time to cleanup
the warning message.
2 years ago
Indrajit Raychaudhuri
e7f75d20bc
prompt: Remove 'powerlevel9k' deprecation warning
...
'powerlevel9k' is unsupported and deprecated for 2 years now. It's time
to cleanu the deprecation warning message.
2 years ago
Indrajit Raychaudhuri
f5dff4fe22
prompt: Update pure submodule to 1.21.0
2 years ago
Indrajit Raychaudhuri
0c364cdd5e
prompt: Update async submodule to 1.8.6
2 years ago
mattmc3
da87c79b3a
Add zstyle to skip aliases for additional modules
2 years ago
Julio Batista Silva
fc444f57e1
gnu-utility: add awk
...
https://www.gnu.org/software/gawk/
https://formulae.brew.sh/formula/gawk
2 years ago
mattmc3
8be95c9c7e
Fix osx module manp function
2 years ago
Roman Perepelitsa
a4ca924310
prompt: update powerlevel10k submodule to v1.17.0
...
Release notes:
- https://github.com/romkatv/powerlevel10k/releases/tag/v1.17.0
2 years ago
huyz
e50b93ca88
Fix zcompile race condition
...
sorin-ionescu/prezto#2028
2 years ago
Jeff Widman
e3a9583f33
Support `virtualenvwrapper` with / without `pyenv` `virtualenv-init` or `virtualenvwrapper` plugins
...
The desired logic is:
For the `pyenv` plugins `virtualenv-init` and `virtualenvwrapper`:
1. If either plugin is present, activate it
2. If `virtualenvwrapper` plugin is not present, then
[fallback to standard
`virtualenvwrapper`](https://github.com/sorin-ionescu/prezto/pull/1414#issuecomment-320306421 ).
3. If `virtualenvwrapper` plugin is present, then [don't fallback to
standard `virtualenvwrapper`, regardless of whether `virtualenv-init`
is
present](https://github.com/sorin-ionescu/prezto/pull/1981#issue-1123766676 ).
Previously, if the `virtualenv` command was present but `pyenv` was
missing, then the fallback wouldn't be hit. This bug was introduced by
https://github.com/sorin-ionescu/prezto/pull/1981/ which ensured that
the `pyenv` `virtualenvwrapper` plugin was activated if present,
regardless of the presence of the `virtualenv-init` plugin.
As an optimization, the check for the `pyenv` plugins are skipped if
`pyenv` itself isn't found.
Since we only want to fallback if the `pyenv` `virtualenvwrapper` plugin
is missing, but that's buried within the `pyenv` logic and we also need
to handle when `pyenv` itself is missing, this switches to using a flag
variable.
I also renamed the `virtualenv_sources` var to
`virtualenvwrapper_sources` as `virtualenv` is distinct from
`virtualenvwrapper`, so using one name for a var that is really about
the other is confusing.
Looking at `git blame`, there's a _lot_ of prior art here around trying
to support all the permutations of `pyenv` and various plugins:
* https://github.com/sorin-ionescu/prezto/issues/1413
* https://github.com/sorin-ionescu/prezto/pull/1414
* https://github.com/sorin-ionescu/prezto/pull/1433
* https://github.com/sorin-ionescu/prezto/pull/1434
So we need to be extremely careful to continue to support all these
permutations.
Fix https://github.com/sorin-ionescu/prezto/issues/2022
2 years ago