Mon, 20 Jan 2025 02:47:08 -0500
fix arch check
837 | 1 | # vim: ft=bash |
174
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
2 | # simple profile stuff that is common to both zsh and bash |
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
3 | |
890
fe8cbacbbb5d
Fix ssh-config fallback
Meredith Howard <mhoward@roomag.org>
parents:
851
diff
changeset
|
4 | umask 027 |
479
2b08e0404a8d
Allow local ssh configs
Meredith Howard <mhoward@roomag.org>
parents:
438
diff
changeset
|
5 | |
1051
5c69bfa6dc3c
Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents:
1009
diff
changeset
|
6 | HISTIGNORE="ls:cd:cd -:pwd:exit:date:privim" |
5c69bfa6dc3c
Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents:
1009
diff
changeset
|
7 | |
1009 | 8 | export MANPATH=$HOME/.man:$HOME/.local/share/man: |
756 | 9 | |
851
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
10 | if [ -d ~/perl5/lib ]; then |
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
11 | eval "$(perl -Mlocal::lib)" |
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
12 | fi |
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
13 | |
991
a925474b9558
Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents:
988
diff
changeset
|
14 | if [ -d /opt/homebrew ]; then |
a925474b9558
Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents:
988
diff
changeset
|
15 | eval "$(/opt/homebrew/bin/brew shellenv)" |
a925474b9558
Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents:
988
diff
changeset
|
16 | fi |
a925474b9558
Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents:
988
diff
changeset
|
17 | |
1180
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
1103
diff
changeset
|
18 | if [ -x ~/.local/bin/mise ]; then |
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
1103
diff
changeset
|
19 | eval "$(mise activate ${ZSH_NAME:-bash})" |
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
1103
diff
changeset
|
20 | fi |
308dce5084af
start switching to mise-en-place
Meredith Howard <mhoward@roomag.org>
parents:
1103
diff
changeset
|
21 | |
851
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
22 | if [ -d ~/.asdf ]; then |
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
23 | source ~/.asdf/asdf.sh |
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
24 | fi |
b8501cb649b6
automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents:
837
diff
changeset
|
25 | |
1066
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
26 | if [ -x "$(command -v nvim)" ]; then |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
27 | export EDITOR=nvim |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
28 | alias vim=nvim |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
29 | alias view="nvim -R" |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
30 | else |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
31 | export editor=vim |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
32 | fi |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
33 | |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
34 | export SUDO_EDITOR=$HOME/bin/privim |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
35 | export LESS='Ri' |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
36 | export GPG_TTY="$(tty)" |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
37 | |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
38 | export PERL_CPANM_OPT='-nq --prompt' |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
39 | |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
40 | export ASDF_CONCURRENCY='2' |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
41 | export RUBY_EXTRA_CONFIGURE_OPTIONS="--enable-shared --enable-install-doc" |
c826661721a8
detect presence of nvim
Meredith Howard <mhoward@roomag.org>
parents:
1051
diff
changeset
|
42 | |
835
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
43 | alias l='ls -lFh' #size,show type,human readable |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
44 | alias la='ls -lAFh' #long list,show almost all,show type,human readable |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
45 | alias lt='ls -ltFh' #long list,sorted by date,show type,human readable |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
46 | alias ll='ls -l' #long list |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
47 | alias rm='rm -i' |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
48 | alias cp='cp -i' |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
49 | alias mv='mv -i' |
49826fe1c850
pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents:
756
diff
changeset
|
50 | |
174
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
51 | alias hgcd='cd $(hg root)' |
179 | 52 | alias gcd='cd "$(git rev-parse --show-toplevel)"' |
174
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
53 | |
988 | 54 | vg() { |
1067
08675f3a85f6
more default editor switching
Meredith Howard <mhoward@roomag.org>
parents:
1066
diff
changeset
|
55 | $EDITOR +copen -q <(ag --vimgrep "${@:?No pattern provided.}") |
988 | 56 | } |
57 | ||
438 | 58 | alias tmux-env='eval "$(tmux show-environment -s)"' |
1067
08675f3a85f6
more default editor switching
Meredith Howard <mhoward@roomag.org>
parents:
1066
diff
changeset
|
59 | alias :e=$EDITOR |
339 | 60 | alias :q=exit |
61 | ||
174
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
62 | if [ -f ~/.profile.common.local ]; then |
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
63 | source ~/.profile.common.local |
d94a247836c8
move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff
changeset
|
64 | fi |