diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..b2a6b3e Binary files /dev/null and b/.DS_Store differ diff --git a/.bashrc b/.bashrc index 93d7a81..0f67cba 100644 --- a/.bashrc +++ b/.bashrc @@ -117,7 +117,6 @@ pathprepend() { # remember last arg will be first in path pathprepend \ /usr/local/bin \ - /usr/local/*/bin \ "$HOME/.local/bin" \ "$GHREPOS/cmd-"* \ "$SCRIPTS" @@ -140,7 +139,7 @@ pathappend \ # ------------------------------ cdpath ------------------------------ -export CDPATH=".:$GHREPOS:$DOT:$REPOS:/media/$USER:$HOME" +export CDPATH=".:$GHREPOS:$DOTFILES:$REPOS:/media/$USER:$HOME" # ------------------------ bash shell options ------------------------ @@ -226,7 +225,7 @@ alias view='vi -R' # which is usually linked to vim alias c='printf "\e[H\e[2J"' alias clear='printf "\e[H\e[2J"' alias coin="clip '(yes|no)'" -alias grep="grep -P" +alias grep="pcregrep" alias minidockenv=". <(minikube docker-env)" alias top=bashtop alias iam=live diff --git a/gh/config.yml b/gh/config.yml index a0114ba..338f571 100644 --- a/gh/config.yml +++ b/gh/config.yml @@ -5,13 +5,13 @@ pager: less aliases: co: pr checkout del: | - !gh api -X DELETE "repos/$GITUSER/$1" + !gh api -X DELETE "repos/$GITUSER/$1" priv: | - !gh api -X PATCH "repos/$GITUSER/$1" -f private="true" | jq .private + !gh api -X PATCH "repos/$GITUSER/$1" -f private="true" | jq .private pub: | - !gh api -X PATCH "repos/$GITUSER/$1" -f private="false" | jq .private + !gh api -X PATCH "repos/$GITUSER/$1" -f private="false" | jq .private status: | - !gh api graphql -f emoji="${1%% *}" -f msg="${1#* }" -f query='mutation ($msg: String!, $emoji: String) {changeUserStatus(input:{message:$msg,emoji:$emoji}) {status { message, emoji }}}' + !gh api graphql -f emoji="${1%% *}" -f msg="${1#* }" -f query='mutation ($msg: String!, $emoji: String) {changeUserStatus(input:{message:$msg,emoji:$emoji}) {status { message, emoji }}}' repos: | !gh api --paginate graphql -f owner="$1" -f query=' query($owner: String!, $per_page: Int = 100, $endCursor: String) { @@ -38,4 +38,4 @@ aliases: } } ' | jq -r '.data.viewer.organizations[][] | .id + " " + .name' defmain: | - !gh api -X PATCH "repos/$1" -f default_branch="main" | jq .default_branch + !gh api -X PATCH "repos/$1" -f default_branch="main" | jq .default_branch diff --git a/install/mac/install-twurl b/install/mac/install-twurl new file mode 100755 index 0000000..f2e6167 --- /dev/null +++ b/install/mac/install-twurl @@ -0,0 +1,2 @@ +#!/bin/bash +sudo gem install twurl diff --git a/lynx/lynx.cfg b/lynx/lynx.cfg index 5c89be1..22beb82 100644 --- a/lynx/lynx.cfg +++ b/lynx/lynx.cfg @@ -2302,7 +2302,9 @@ SCAN_FOR_BURIED_NEWS_REFS:FALSE # If you use xli, you may want to add the -quiet flag. # #XLOADIMAGE_COMMAND:xli %s & -XLOADIMAGE_COMMAND:xdg-open %s & + +# https://github.com/rwxrob/dot/blob/main/scripts/open +XLOADIMAGE_COMMAND:open %s & .h2 VIEWER # MIME types may be assigned to external viewers using diff --git a/scripts/lynxa b/scripts/lynxa index b3ea042..f523dd0 100755 --- a/scripts/lynxa +++ b/scripts/lynxa @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash count=1 if test -n "$1"; then diff --git a/scripts/open b/scripts/open index 36502c3..43ab852 100755 --- a/scripts/open +++ b/scripts/open @@ -7,9 +7,12 @@ # Finally, it assumes it is a URL, ensures begins with https:// and # opens it in a new window with Firefox. + use v5.14; $_ = shift; +`env > /tmp/env` + # git repo if (not $_) { my $gh = (grep {/github/ && s,git@,, && s,:,/, && s/\.git$//} diff --git a/scripts/post b/scripts/post index fb70634..e79985a 100755 --- a/scripts/post +++ b/scripts/post @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash shopt -s extglob chat "${1//+($'\n')/ }" twitter update "$@" diff --git a/scripts/startvms b/scripts/startvms new file mode 100755 index 0000000..322c4b0 --- /dev/null +++ b/scripts/startvms @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +VBoxHeadless --startvm control & +VBoxHeadless --startvm node1 & +VBoxHeadless --startvm node2 &