commit 098d0475077bb17a8c6f815bb25ebe590d3ac984 Spenser Truex <web@spensertruex.com> 2019-11-26 13:13:04 -0800 Update.
abbreviations.fish | 1 + aliases.fish | 1 + functions/calc.fish | 3 +++ functions/lc.fish | 3 +++ functions/piss.fish | 5 +++++ functions/pp.fish | 4 ++++ functions/rgg.fish | 4 ++++ functions/rgl.fish | 4 ++++ functions/rgp.fish | 4 ++++ functions/rgs.fish | 4 ++++ functions/sand.fish | 3 +++ functions/sandmacs.fish | 4 ++++ variables.fish | 30 +++++++++++++++++++++++++++++- 13 files changed, 69 insertions(+), 1 deletion(-)
diff --git a/abbreviations.fish b/abbreviations.fish index e84b035..1b3aae7 100644 --- a/abbreviations.fish +++ b/abbreviations.fish @@ -26,6 +26,7 @@ if status --is-interactive abbr -a ese emerge --search # misspellings + abbr -a eamcs emacs abbr -a os ls abbr -a dispath-conf dispatch-conf abbr -a laod load diff --git a/aliases.fish b/aliases.fish index b51c808..203c529 100644 --- a/aliases.fish +++ b/aliases.fish @@ -1 +1,2 @@ alias g grep +alias vg vimpager diff --git a/functions/calc.fish b/functions/calc.fish new file mode 100644 index 0000000..5e812c7 --- /dev/null +++ b/functions/calc.fish @@ -0,0 +1,3 @@ +function calc + emacsclient -nca '' -f full-calc +end diff --git a/functions/lc.fish b/functions/lc.fish new file mode 100644 index 0000000..a0d5ea4 --- /dev/null +++ b/functions/lc.fish @@ -0,0 +1,3 @@ +function lc + locate -e $argv +end diff --git a/functions/piss.fish b/functions/piss.fish new file mode 100644 index 0000000..490d994 --- /dev/null +++ b/functions/piss.fish @@ -0,0 +1,5 @@ +function piss -w pass + pass find $argv + pass -c $argv + pass $argv +end diff --git a/functions/pp.fish b/functions/pp.fish new file mode 100644 index 0000000..706d807 --- /dev/null +++ b/functions/pp.fish @@ -0,0 +1,4 @@ +# Pretty print with less +function pp + less -R $argv +end diff --git a/functions/rgg.fish b/functions/rgg.fish new file mode 100644 index 0000000..759f7ee --- /dev/null +++ b/functions/rgg.fish @@ -0,0 +1,4 @@ +# ripgrep GREP style +function rgg + rg -SPuuu $argv +end diff --git a/functions/rgl.fish b/functions/rgl.fish new file mode 100644 index 0000000..f643339 --- /dev/null +++ b/functions/rgl.fish @@ -0,0 +1,4 @@ +# rg with pretty less output +function rgl + rg -PSp $argv | less -R +end diff --git a/functions/rgp.fish b/functions/rgp.fish new file mode 100644 index 0000000..9bd074c --- /dev/null +++ b/functions/rgp.fish @@ -0,0 +1,4 @@ +# Perl ripgrep +function rgp + rg -P $argv +end diff --git a/functions/rgs.fish b/functions/rgs.fish new file mode 100644 index 0000000..7798f02 --- /dev/null +++ b/functions/rgs.fish @@ -0,0 +1,4 @@ +# DWIM case match. +function rgs + rg -PS $argv +end diff --git a/functions/sand.fish b/functions/sand.fish new file mode 100644 index 0000000..cd06bf9 --- /dev/null +++ b/functions/sand.fish @@ -0,0 +1,3 @@ +function sand -d "Run something from the sandbox user." + sudo -u sand $argv +end diff --git a/functions/sandmacs.fish b/functions/sandmacs.fish new file mode 100644 index 0000000..7bd8fc3 --- /dev/null +++ b/functions/sandmacs.fish @@ -0,0 +1,4 @@ +function sandmacs -w emacs + chown -R sand:sand /home/sand/.emacs.d + sand emacs $argv +end diff --git a/variables.fish b/variables.fish index 8d4beac..e395c22 100644 --- a/variables.fish +++ b/variables.fish @@ -5,4 +5,32 @@ set --export SHELL /bin/fish set -x GH_BASE_DIR "$HOME/src/" # iss44 set -g fish_key_bindings fish_vi_key_bindings -set -g EDITOR emacs # For visual edits, use =C-x #= to end. +set -x PATH $PATH /home/jose/.local/bin +set -x PATH $PATH /home/jose/bin/bin + +set -x PATH $PATH /home/jose/.cabal/bin +set -x PATH $PATH /home/jose/java +set -x PATH $PATH /home/jose/bin/jdk-12.0.2 +set -x PATH $PATH /home/jose/docs/javadoc +set -x EDITOR "/usr/bin/vim" +set -x ALTERNATE_EDITOR "/usr/bin/vim" +set GOPATH "/home/jose/bin/go" +set TZ "America/Los_Angeles" + +# colors in manpages and pager +# does not work +# set -x LESS_TERMCAP_mb (tput bold; tput setaf 2) # green +# set -x LESS_TERMCAP_md (tput bold; tput setaf 6) # cyan +# set -x LESS_TERMCAP_me (tput sgr0) +# set -x LESS_TERMCAP_so (tput bold; tput setaf 3; tput setab 4) # yellow on blue +# set -x LESS_TERMCAP_se (tput rmso; tput sgr0) +# set -x LESS_TERMCAP_us (tput smul; tput bold; tput setaf 7) # white +# set -x LESS_TERMCAP_ue (tput rmul; tput sgr0) +# set -x LESS_TERMCAP_mr (tput rev) +# set -x LESS_TERMCAP_mh (tput dim) +# set -x LESS_TERMCAP_ZN (tput ssubm) +# set -x LESS_TERMCAP_ZV (tput rsubm) +# set -x LESS_TERMCAP_ZO (tput ssupm) +# set -x LESS_TERMCAP_ZW (tput rsupm) +# set -x GROFF_NO_SGR 1 +# set -x PAGER "less" # does not require `most`.