Fix quirks on mac

main
Rob Muhlestein 2 years ago
parent 372b0bdc3f
commit cc2cfc1358

BIN
.DS_Store vendored

Binary file not shown.

@ -117,7 +117,6 @@ pathprepend() {
# remember last arg will be first in path # remember last arg will be first in path
pathprepend \ pathprepend \
/usr/local/bin \ /usr/local/bin \
/usr/local/*/bin \
"$HOME/.local/bin" \ "$HOME/.local/bin" \
"$GHREPOS/cmd-"* \ "$GHREPOS/cmd-"* \
"$SCRIPTS" "$SCRIPTS"
@ -140,7 +139,7 @@ pathappend \
# ------------------------------ cdpath ------------------------------ # ------------------------------ cdpath ------------------------------
export CDPATH=".:$GHREPOS:$DOT:$REPOS:/media/$USER:$HOME" export CDPATH=".:$GHREPOS:$DOTFILES:$REPOS:/media/$USER:$HOME"
# ------------------------ bash shell options ------------------------ # ------------------------ 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 c='printf "\e[H\e[2J"'
alias clear='printf "\e[H\e[2J"' alias clear='printf "\e[H\e[2J"'
alias coin="clip '(yes|no)'" alias coin="clip '(yes|no)'"
alias grep="grep -P" alias grep="pcregrep"
alias minidockenv=". <(minikube docker-env)" alias minidockenv=". <(minikube docker-env)"
alias top=bashtop alias top=bashtop
alias iam=live alias iam=live

@ -5,13 +5,13 @@ pager: less
aliases: aliases:
co: pr checkout co: pr checkout
del: | del: |
!gh api -X DELETE "repos/$GITUSER/$1" !gh api -X DELETE "repos/$GITUSER/$1"
priv: | 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: | 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: | 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: | repos: |
!gh api --paginate graphql -f owner="$1" -f query=' !gh api --paginate graphql -f owner="$1" -f query='
query($owner: String!, $per_page: Int = 100, $endCursor: String) { query($owner: String!, $per_page: Int = 100, $endCursor: String) {
@ -38,4 +38,4 @@ aliases:
} }
} ' | jq -r '.data.viewer.organizations[][] | .id + " " + .name' } ' | jq -r '.data.viewer.organizations[][] | .id + " " + .name'
defmain: | 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

@ -0,0 +1,2 @@
#!/bin/bash
sudo gem install twurl

@ -2302,7 +2302,9 @@ SCAN_FOR_BURIED_NEWS_REFS:FALSE
# If you use xli, you may want to add the -quiet flag. # If you use xli, you may want to add the -quiet flag.
# #
#XLOADIMAGE_COMMAND:xli %s & #XLOADIMAGE_COMMAND:xli %s &
XLOADIMAGE_COMMAND:xdg-open %s &
# https://github.com/rwxrob/dot/blob/main/scripts/open
XLOADIMAGE_COMMAND:open %s &
.h2 VIEWER .h2 VIEWER
# MIME types may be assigned to external viewers using # MIME types may be assigned to external viewers using

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
count=1 count=1
if test -n "$1"; then if test -n "$1"; then

@ -7,9 +7,12 @@
# Finally, it assumes it is a URL, ensures begins with https:// and # Finally, it assumes it is a URL, ensures begins with https:// and
# opens it in a new window with Firefox. # opens it in a new window with Firefox.
use v5.14; use v5.14;
$_ = shift; $_ = shift;
`env > /tmp/env`
# git repo # git repo
if (not $_) { if (not $_) {
my $gh = (grep {/github/ && s,git@,, && s,:,/, && s/\.git$//} my $gh = (grep {/github/ && s,git@,, && s,:,/, && s/\.git$//}

@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/env bash
shopt -s extglob shopt -s extglob
chat "${1//+($'\n')/ }" chat "${1//+($'\n')/ }"
twitter update "$@" twitter update "$@"

@ -0,0 +1,4 @@
#!/usr/bin/env bash
VBoxHeadless --startvm control &
VBoxHeadless --startvm node1 &
VBoxHeadless --startvm node2 &
Loading…
Cancel
Save