Alpha Chen
bfd59d321c
don't auto-switch with chruby
...
This can make $PATH wonky
2 years ago
Alpha Chen
118d08f67d
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
3 years ago
Alpha Chen
dc7c6a64c5
add nix path
3 years ago
Alpha Chen
12897e48f5
add terraform completion
3 years ago
Alpha Chen
f90b5f6568
fzf git bindings
...
https://junegunn.kr/2016/07/fzf-git/
3 years ago
Alpha Chen
a2232e94ff
fix nix
3 years ago
Alpha Chen
6e249b6093
make alt-c work for fzf
3 years ago
Alpha Chen
691c448cac
make brew work on the m1
3 years ago
Alpha Chen
d1852dca3a
make directories easier to see with exa
3 years ago
Alpha Chen
89db876978
change prompt success color to green
3 years ago
Alpha Chen
dc22a84596
add nix, cargo to zshenv
3 years ago
Alpha Chen
ba4c20236b
add terraform completion
3 years ago
Alpha Chen
608435b957
fzf additions
...
- `z` for fasd support
- `CTRL-G` for git changed files
3 years ago
Alpha Chen
840b3b6d2b
disable the default RPROMPT
3 years ago
Alpha Chen
c31a3da9ff
use `$commands` instead of `type` because it's faster
3 years ago
Alpha Chen
9544877251
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
```
3 years ago
Alpha Chen
b701f3d2c4
nix
3 years ago
Alpha Chen
3455a33274
add kubectl completions
3 years ago
Alpha Chen
f45623a612
use a module for docker completion
3 years ago
Alpha Chen
c40c0ee09a
add custom completions
3 years ago
Alpha Chen
ad0f0a3865
fix fzf alt-c command
3 years ago
Alpha Chen
d674aa9175
add .local/bin to $PATH
3 years ago
Alpha Chen
ba8e1469fc
move aliases to rc, add tmux alias for better integration w/direnv
3 years ago
Alpha Chen
9043fe2ca9
fzf updates
3 years ago
Alpha Chen
80d34835ca
use double quotes
3 years ago
Alpha Chen
70cad93b1c
fzf
3 years ago
Alpha Chen
6c608077b9
use exa for ls
3 years ago
Alpha Chen
56777a2516
move chruby to rc, add .dotfiles/bin
3 years ago
Alpha Chen
d38798adbd
move PATH-modifying stuff to zshenv
3 years ago
Alpha Chen
cf9b50a2e7
Fix tat session name cleaning
3 years ago
Alpha Chen
acf7f295c1
Sub all . for _ for tat
3 years ago
Alpha Chen
4b44325af4
Selecta support
...
68554d6965/.zshrc (L122)
3 years ago
Alpha Chen
8b8e4e6894
Add ~/bin to PATH
3 years ago
Alpha Chen
276505fe65
Sanitize tmux session names
3 years ago
Alpha Chen
9b4585ccd6
Add Cargo bin to PATH
3 years ago
Alpha Chen
d0a353be62
Move direnv and chruby hooks into zshrc
3 years ago
Alpha Chen
65c27af5bb
Make eject function case-insensitive
3 years ago
Alpha Chen
fb2335b2ec
Re-enable automatic chruby-ing
3 years ago
Alpha Chen
4b8c824a2a
Fix up arrow through history
3 years ago
Alpha Chen
a0d21e178f
Enable syntax highlighting and history substring matching
3 years ago
Alpha Chen
04e9894f96
Add a "plz" alias for "sudo"
3 years ago
Alpha Chen
74c605c76d
Add function for ejecting mounts
3 years ago
Alpha Chen
945d853bd9
initial personalization
3 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
Indrajit Raychaudhuri
48291f68e8
general: Reformat runcom documentation
3 years ago
Indrajit Raychaudhuri
6c5657be8e
zprofile: Don't exit 'less' when everything fits the screen
...
This aligns better with default `less` behavior and allows for
'growable content' when `less` is used as a substitute for `tail`.
4 years ago
Indrajit Raychaudhuri
1ff9421f7b
general: Update documentation better qualifying runcom paths
...
Zsh and Prezto files don't always reside in `~/`. Instead, they have
a more spec compliant location (`${ZDOTDIR:-$HOME}/`). Make them
unambiguous in the documentation. Likewise, for `$GNUPGHOME`.
Further, add instruction for optionally setting up Prezto in
`$XDG_CONFIG_HOME`.
While at this, also add clarification on relative ordering of some of
the modules, apply more formatting tweaks and doc improvements.
4 years ago