.profile.common

Sun, 05 Mar 2023 20:36:54 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 05 Mar 2023 20:36:54 -0500
changeset 1065
23229c179f82
parent 1051
5c69bfa6dc3c
child 1066
c826661721a8
permissions
-rw-r--r--

I can just repeat

837
b3e5b49e29c3 ft=bash
Meredith Howard <mhoward@roomag.org>
parents: 835
diff changeset
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
1051
5c69bfa6dc3c Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents: 1009
diff changeset
4 # most ssh versions support include now, see if i can...
890
fe8cbacbbb5d Fix ssh-config fallback
Meredith Howard <mhoward@roomag.org>
parents: 851
diff changeset
5 make -s -C ~/.ssh || {
fe8cbacbbb5d Fix ssh-config fallback
Meredith Howard <mhoward@roomag.org>
parents: 851
diff changeset
6 umask 077
fe8cbacbbb5d Fix ssh-config fallback
Meredith Howard <mhoward@roomag.org>
parents: 851
diff changeset
7 cat ~/.ssh/config.d/* > ~/.ssh/config
fe8cbacbbb5d Fix ssh-config fallback
Meredith Howard <mhoward@roomag.org>
parents: 851
diff changeset
8 }
543
f033acea6b1e restrict umask
Meredith Howard <mhoward@roomag.org>
parents: 514
diff changeset
9
890
fe8cbacbbb5d Fix ssh-config fallback
Meredith Howard <mhoward@roomag.org>
parents: 851
diff changeset
10 umask 027
479
2b08e0404a8d Allow local ssh configs
Meredith Howard <mhoward@roomag.org>
parents: 438
diff changeset
11
1051
5c69bfa6dc3c Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents: 1009
diff changeset
12 HISTIGNORE="ls:cd:cd -:pwd:exit:date:privim"
5c69bfa6dc3c Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents: 1009
diff changeset
13
1009
6e406c848736 Add .local manpath
Meredith Howard <mhoward@roomag.org>
parents: 991
diff changeset
14 export MANPATH=$HOME/.man:$HOME/.local/share/man:
756
8bc91181db9d add setup-man
Meredith Howard <mhoward@roomag.org>
parents: 749
diff changeset
15
1051
5c69bfa6dc3c Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents: 1009
diff changeset
16 # TODO: detect presence
5c69bfa6dc3c Switch default to nvim
Meredith Howard <mhoward@roomag.org>
parents: 1009
diff changeset
17 export EDITOR=nvim
514
d596509d91f0 safer sudo -e
Meredith Howard <mhoward@roomag.org>
parents: 506
diff changeset
18 export SUDO_EDITOR=$HOME/bin/privim
506
2a6899f40b2e smartcase please
Meredith Howard <mhoward@roomag.org>
parents: 480
diff changeset
19 export LESS='Ri'
749
27f7431c8170 Fix up gpg stuff
Meredith Howard <mhoward@roomag.org>
parents: 696
diff changeset
20 export GPG_TTY="$(tty)"
696
46dd5299006d add asdf options
Meredith Howard <mhoward@roomag.org>
parents: 608
diff changeset
21
233
e31c379b5bda no reinstall default for cpanm
Meredith Howard <mhoward@roomag.org>
parents: 179
diff changeset
22 export PERL_CPANM_OPT='-nq --prompt'
174
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
23
696
46dd5299006d add asdf options
Meredith Howard <mhoward@roomag.org>
parents: 608
diff changeset
24 export ASDF_CONCURRENCY='2'
46dd5299006d add asdf options
Meredith Howard <mhoward@roomag.org>
parents: 608
diff changeset
25 export RUBY_EXTRA_CONFIGURE_OPTIONS="--enable-shared --enable-install-doc"
46dd5299006d add asdf options
Meredith Howard <mhoward@roomag.org>
parents: 608
diff changeset
26
851
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
27 if [ -d ~/perl5/lib ]; then
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
28 eval "$(perl -Mlocal::lib)"
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
29 fi
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
30
991
a925474b9558 Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents: 988
diff changeset
31 if [ -d /opt/homebrew ]; then
a925474b9558 Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents: 988
diff changeset
32 eval "$(/opt/homebrew/bin/brew shellenv)"
a925474b9558 Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents: 988
diff changeset
33 fi
a925474b9558 Handle M1 homebrew setup if present
Meredith Howard <mhoward@roomag.org>
parents: 988
diff changeset
34
851
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
35 if [ -d ~/.asdf ]; then
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
36 source ~/.asdf/asdf.sh
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
37 fi
b8501cb649b6 automatically try to pick up local::lib
Meredith Howard <mhoward@roomag.org>
parents: 837
diff changeset
38
835
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 756
diff changeset
39 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
40 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
41 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
42 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
43 alias rm='rm -i'
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 756
diff changeset
44 alias cp='cp -i'
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 756
diff changeset
45 alias mv='mv -i'
49826fe1c850 pluck just a few things from omz common-aliases
Meredith Howard <mhoward@roomag.org>
parents: 756
diff changeset
46
174
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
47 alias hgcd='cd $(hg root)'
179
fe7e8d6d1853 fix gcd
Meredith Howard <mhoward@roomag.org>
parents: 174
diff changeset
48 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
49
988
c74a9716d606 add vg function
Meredith Howard <mhoward@roomag.org>
parents: 890
diff changeset
50 vg() {
c74a9716d606 add vg function
Meredith Howard <mhoward@roomag.org>
parents: 890
diff changeset
51 vim +copen -q <(ag --vimgrep "${@:?No pattern provided.}")
c74a9716d606 add vg function
Meredith Howard <mhoward@roomag.org>
parents: 890
diff changeset
52 }
c74a9716d606 add vg function
Meredith Howard <mhoward@roomag.org>
parents: 890
diff changeset
53
438
862d1e79b830 add tmux-env
Meredith Howard <mhoward@roomag.org>
parents: 420
diff changeset
54 alias tmux-env='eval "$(tmux show-environment -s)"'
339
a2f7e73ea74b add :e and :q aliases
Meredith Howard <mhoward@roomag.org>
parents: 328
diff changeset
55 alias :e=vim
a2f7e73ea74b add :e and :q aliases
Meredith Howard <mhoward@roomag.org>
parents: 328
diff changeset
56 alias :q=exit
a2f7e73ea74b add :e and :q aliases
Meredith Howard <mhoward@roomag.org>
parents: 328
diff changeset
57
174
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
58 if [ -f ~/.profile.common.local ]; then
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
59 source ~/.profile.common.local
d94a247836c8 move some basics into a common profile
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
60 fi

mercurial