Skip to content

Commit 7ea451f

Browse files
committed
minor updates
1 parent 07230fa commit 7ea451f

File tree

9 files changed

+42
-20
lines changed

9 files changed

+42
-20
lines changed

.aliases

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ alias master="main"
5151
alias dotfiles="subl ~/code/dotfiles" # open dotfiles for viewing
5252

5353
# Networking. IP address, dig, DNS
54-
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
5554
# alias dig="dig +nocmd any +multiline +noall +answer"
5655
# wget sucks with certificates. Let's keep it simple.
5756
alias wget="curl -O"

.config/mpv/mpv.conf

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ keep-open=yes
88

99
# launch within the available screen space.
1010
autofit-larger=100%x100%
11+
12+
# Minimum window size
13+
autofit-smaller=1500x1000

.exports

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# file is shared between bash and fish
2+
# todo: place these near the thematically related stuff. grouping as .exports is dumb.
23

34
# vim as default
45
export EDITOR="vim"
@@ -31,3 +32,10 @@ export FZF_DEFAULT_COMMAND='fd'
3132
export FZF_CTRL_T_COMMAND='fd'
3233
export FZF_CTRL_T_OPTS="--preview 'bat -n --color=always {} 2>/dev/null || tree -C {}'"
3334

35+
# Skip line-numbers and grid. https://github.com/sharkdp/bat/blob/e608b331425ca2ce8f8d0bd37e7f90901f91eb99/src/style.rs#L27-L61
36+
# In the future this can be `default,-numbers,-grid` but they haven't released in 18months so.....
37+
export BAT_STYLE="changes,header-filename,header-filesize,snip,rule"
38+
39+
40+
export CLOUDSDK_PYTHON=/usr/bin/python3
41+

bin/start-devtools-servers.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo "hi"
1111
statikk --cors --port=9308 $HOME/chromium-devtools/devtools-frontend/front_end/panels/timeline/fixtures/traces &
1212

1313
# port 10090
14-
cd $HOME/chromium-devtools/devtools-frontend && PORT=10090 /Users/paulirish/bin/node scripts/component_server/server.js
14+
cd $HOME/chromium-devtools/devtools-frontend && PORT=10090 /usr/local/bin/node scripts/component_server/server.js
1515

1616
# but DONT background this last one.. so you can ctrl-c the script in total ^
1717

cron/crontab

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# whats in the real crontab and this file are technically two diff things
2-
# for now we just manually make sure this matches whats in `crontab -e`
1+
# whats in the real crontab and this file are technically two diff things. for now we just manually make sure this matches whats in there.
32
# todo: implement something like this? https://blog.chmd.fr/saving-your-crontab-in-your-dotfiles.html
43
#
54
# to edit real crontab:
65
# env EDITOR=nano crontab -e
76
#
8-
# make sure all scripts are executable.
9-
# chmod +x *.sh
7+
# make sure all scripts are executable: chmod +x *.sh
108

119
#=====================================================================#
1210
# 0-23 0-59 0-30 0-6 1-12 #
@@ -22,15 +20,19 @@
2220
#=====================================================================#
2321
# Min | Hour | Mday | Month | Wday | Command #
2422
#=====================================================================#
25-
*/7 * * * * $HOME/code/dotfiles/cron/every-five-minutes.sh > /dev/null 2>&1
26-
15 * * * * $HOME/code/dotfiles/cron/every-hour.sh > /dev/null 2>&1
27-
0 3 * * * $HOME/code/dotfiles/cron/daily-nighttime.sh
28-
20 17,18 * * 6 $HOME/code/dotfiles/cron/weekly.sh
23+
24+
*/20 * * * * $HOME/code/dotfiles/cron/every-five-minutes.sh > /dev/null 2>&1
25+
15 * * * * $HOME/code/dotfiles/cron/every-hour.sh > /dev/null 2>&1
26+
# 0 3 * * * $HOME/code/dotfiles/cron/daily-nighttime.sh
27+
20 17,18 * * 5 $HOME/code/dotfiles/cron/weekly.sh
28+
35 16 * * MON-FRI $HOME/code/dotfiles/cron/workday-end.sh
29+
30+
# https://stackoverflow.com/questions/2135478/how-to-simulate-the-environment-cron-executes-a-script-with
31+
# * * * * * env > ~/cronenv
32+
2933
#=====================================================================#
3034

31-
5 17 * * MON-FRI $HOME/code/dotfiles/cron/workday-end.sh
32-
3335

3436
# disabled for now
3537
# 20 17,18 * * 1-5 $HOME/code/dotfiles/cron/twice-during-weekdays.sh
36-
# */15 * * * * $HOME/bin/temp-help.sh
38+
# */15 * * * * $HOME/bin/temp-help.sh

fish/aliases.fish

-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ alias dotfiles="subl ~/code/dotfiles" # open dotfiles for viewing
126126

127127

128128
# Networking. IP address, dig, DNS
129-
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
130129
alias dig="dig +nocmd any +multiline +noall +answer"
131130
# wget sucks with certificates. Let's keep it simple.
132131
alias wget="curl -L -O"

fish/config.fish

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# I've noticed this file gets called 3 times. Looks like one is from pureprompt.
1+
# I've noticed this file gets called multiple times.
22
# todo, investigate later.
33
# status stack-trace
44

@@ -16,6 +16,13 @@ function ssource --description "source most of my dotfiles, useful if making cha
1616
source ~/.config/fish/functions.fish
1717
source ~/.config/fish/chromium.fish
1818

19+
# pull in all shared `export …` aka `set -gx …`
20+
source ~/.exports
21+
22+
if test -e "../private/extras.fish";
23+
source ../private/extras.fish
24+
end
25+
1926
# for things not checked into git..
2027
if test -e "$HOME/.extra.fish";
2128
source ~/.extra.fish
@@ -91,8 +98,7 @@ set -g fish_pager_color_prefix cyan
9198
set -g fish_pager_color_progress cyan
9299

93100

94-
# pull in all shared `export …` aka `set -gx …`
95-
source ~/.exports
101+
96102

97103
# ctrl-b invokes the fancy boi. but this doesnt really work right.
98104
bind \cb git-recent-with-fzf-and-diff

fish/functions.fish

+5
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ function shellswitch
165165
chsh -s (brew --prefix)/bin/$argv
166166
end
167167

168+
function maxcpu100 -d "literally max out all your cores."
169+
echo "To stop the pain run:"
170+
echo "killall yes"
171+
for i in (seq (nproc)); yes >/dev/null & end
172+
end
168173

169174
# requires my excellent `npm install -g statikk`
170175
function server -d 'Start a HTTP server in the current dir, optionally specifying the port'

fish/functions/fish_prompt.fish

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ end
6161

6262

6363
function fish_right_prompt
64-
set_color brblack
65-
printf ' %s ' (date +'%l:%M:%S %p, %b %d') # simpler but with a leading 0 on hours: date +'%r, %b %d')
66-
set_color normal
64+
# set_color brblack
65+
# printf ' %s ' (date +'%l:%M:%S %p, %b %d') # simpler but with a leading 0 on hours: date +'%r, %b %d')
66+
# set_color normal
6767
end
6868

6969
# https://github.com/fernzi/dotfiles/blob/c551097cd9bd872e6d71d80efb74f359377c1f08/fish/.config/fish/functions/fish_right_prompt.fish#L10

0 commit comments

Comments
 (0)