Alpha Chen
29e931cdbf
simplify setting homebrew envvars
1 year ago
Alpha Chen
8cb51b9468
remove unnecessary chruby initialization
1 year ago
Alpha Chen
7275bc95e1
don't auto-switch with chruby
...
This can make $PATH wonky
1 year ago
Alpha Chen
3cd1932f3c
update with a few tweaks
...
- Use `$HOMEBREW_PREFIX` since it's already there
- Don't `chruby ruby` automatically since it messes with `$PATH`
- Try using fzf's builtins
1 year ago
Alpha Chen
9a787bc291
add nix path
1 year ago
Alpha Chen
da5f4ca125
add terraform completion
1 year ago
Alpha Chen
7a2922804b
fzf git bindings
...
https://junegunn.kr/2016/07/fzf-git/
1 year ago
Alpha Chen
2f8f706d16
fix nix
1 year ago
Alpha Chen
5648b58195
make alt-c work for fzf
1 year ago
Alpha Chen
30bdfeb900
make brew work on the m1
1 year ago
Alpha Chen
ab32e57279
make directories easier to see with exa
1 year ago
Alpha Chen
c4235a837e
change prompt success color to green
1 year ago
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
huyz
e50b93ca88
Fix zcompile race condition
...
sorin-ionescu/prezto#2028
2 years ago
Shea690901
dea85a0740
feat(module/history): add full configurability
...
While previusly configurable, it was inconsistent with other
configuration options and it was missing configurability of in memory /
on disc history size.
Signed-off-by: Shea690901 <ginny690901@hotmail.de>
3 years ago
Indrajit Raychaudhuri
3dc3fa7f8c
zprofile: Expand the default list of well known paths
...
Two additional sets of paths are now added to the default list of well
known paths: '$HOME/{bin,sbin}' and '/opt/{homebrew,local}/{bin,sbin}'.
- '$HOME/{bin,sbin}': Most users have custom scripts in '$HOME/bin'
anyway, we might as well honor those. '$HOME/sbin' is not really common,
but we can keep it for consistency.
- '/opt/{homebrew,local}/{bin,sbin}': With Homebrew changing default
installation location in macOS on Apple Silicon which will eventually
become ubiquitous, we have a good reason to add these paths by default.
While at it, we also honor MacPorts installation.
In all cases, we add them _iff_ the paths actually exist, not otherwise.
This has the side effect of a newly installed program not available
immediately in the '$path' in a mint fresh system (because of the fact
that '/opt/{homebrew,local}/{bin,sbin}' won't exist initially) until the
shell is reloaded. But that's a minor inconvenience to keep the '$path'
from getting unnecessarily bloated.
3 years ago
Indrajit Raychaudhuri
98d69fc91f
zprofile: adjust condition for `LESSOPEN` export
...
Split tests for condition for `export LESSOPEN` separate per convention
3 years ago
Aaron Kanter
15150085e6
Only export env variables in zprofile if unset
...
As per [zsh documentation](https://zsh.sourceforge.io/Intro/intro_3.html ) environment variables should be expected to be in `.zshenv` and not be overridden in `.zprofile`. This change modifies BROWSER (on darwin systems only), EDITOR, VISUAL, PAGER, LESS, and LESSOPEN to only use zprezto defaults if they were not previously set in the loading order.
See:
https://github.com/nix-community/home-manager/issues/2739
https://github.com/nix-community/home-manager/issues/2751
3 years ago