Skip to content

Commit

Permalink
Merge pull request #2 from jpcercal/urlwatch
Browse files Browse the repository at this point in the history
urlwatch
  • Loading branch information
jpcercal authored Feb 6, 2024
2 parents 1199530 + 7f924cc commit 3e47806
Show file tree
Hide file tree
Showing 14 changed files with 1,346 additions and 251 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: MacOS Workflow
on: [push]

jobs:
shellcheck:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
path: "."
pattern: "*.sh"
exclude: "./.git/*"
check_all_files_with_shebangs: "false"
dotfiles:
name: dotfiles
runs-on: macos-latest
Expand Down
28 changes: 28 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ eval "$(pyenv init -)"
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"

###########################################################
# rust

source "$HOME/.cargo/env"

###########################################################
# nvm

Expand Down Expand Up @@ -171,3 +176,26 @@ ZSH_AUTOSUGGEST_STRATEGY=atuin_top

export KUBECONFIG=~/.kube/config
export AWS_PROFILE="TXBTurboshopDeveloperAccess-440308253360"

###########################################################
# functions

gli() {
local filter
if [ -n $@ ] && [ -f $@ ]; then
filter="-- $@"
fi

git log \
--graph --color=always --abbrev=7 --format='%C(auto)%h %an %C(blue)%s %C(yellow)%cr' $@ | \
fzf \
--ansi --no-sort --reverse --tiebreak=index \
--preview "f() { set -- \$(echo -- \$@ | grep -o '[a-f0-9]\{7\}'); [ \$# -eq 0 ] || git show --color=always \$1 $filter; }; f {}" \
--bind "j:down,k:up,alt-j:preview-down,alt-k:preview-up,ctrl-f:preview-page-down,ctrl-b:preview-page-up,q:abort,ctrl-m:execute:
(grep -o '[a-f0-9]\{7\}' | head -1 |
xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF'
{}
FZF-EOF" \
--preview-window=right:60% \
--height 80%
}
33 changes: 18 additions & 15 deletions apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ install:
- "coreutils"
- "doctl"
- "exa"
- "exiftool"
- "fd"
- "fdupes"
- "ffmpeg"
- "findutils"
- "fswatch"
Expand All @@ -33,6 +36,7 @@ install:
- "gnu-sed"
- "go"
- "golangci-lint"
- "howdoi"
- "hr"
- "htmlq"
- "htop"
Expand Down Expand Up @@ -66,8 +70,10 @@ install:
- "terraform"
- "tldr"
- "tmux"
- "tpm"
- "tree"
- "unison"
- "urlwatch"
- "vim"
- "watch"
- "watchexec"
Expand All @@ -84,6 +90,7 @@ install:
- "appcleaner"
- "authy"
- "balena-cli"
- "brave-browser"
- "discord"
- "docker"
- "dropbox"
Expand Down Expand Up @@ -140,6 +147,7 @@ install:
- "font-victor-mono-nerd-font"
- "google-chrome"
- "hiddenbar"
- "hoppscotch"
- "hpedrorodrigues/tools/dockutil" # temporary solution https://github.com/kcrawford/dockutil/issues/127
- "imageoptim"
- "iterm2"
Expand All @@ -149,13 +157,12 @@ install:
- "macs-fan-control"
- "monitorcontrol"
- "moonlight"
- "mysqlworkbench"
- "nordvpn"
- "numi"
- "obs"
- "oracle-jdk"
- "parsec"
- "pocket-casts"
- "postman"
- "sequel-ace"
- "shottr"
- "skype"
Expand All @@ -176,10 +183,13 @@ install:
- "brew link --overwrite awscli"
- "brew link --overwrite go"
- "brew link --overwrite [email protected]"
- "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y"
- "echo \"y\" | $(brew --prefix)/opt/fzf/install"
- "git lfs install"
- "go install github.com/oklog/ulid/v2/cmd/ulid@latest"
- "mkdir ~/.nvm"
- "mkdir -p ~/dotfiles/logs/crontab/"
- "crontab ~/dotfiles/crontab"
pyenv:
global:
version: 3.11.1
Expand All @@ -196,6 +206,7 @@ install:
global:
packages:
- "neovim"
- "prettier"
- "serverless"
mas:
apps:
Expand All @@ -215,14 +226,10 @@ install:
name: "Fantastical 2"
- id: "412448059"
name: "ForkLift"
- id: "553245401"
name: "Friendly Streaming"
- id: "682658836"
name: "GarageBand"
- id: "668208984"
name: "Giphy Capture"
- id: "975890633"
name: "HotKey"
- id: "775737590"
name: "iA Writer"
- id: "408981434"
Expand All @@ -239,10 +246,6 @@ install:
name: "Numbers"
- id: "409201541"
name: "Pages"
- id: "568494494"
name: "Pocket"
- id: "880001334"
name: "Reeder"
- id: "1153157709"
name: "Speedtest"
- id: "1278508951"
Expand Down Expand Up @@ -290,11 +293,6 @@ config:
to:
absolute_path: "~/.vimrc"

- from:
relative_path: ".zsh_history"
to:
absolute_path: "~/.zsh_history"

- from:
relative_path: ".zshrc"
to:
Expand All @@ -304,6 +302,11 @@ config:
relative_path: "starship.toml"
to:
absolute_path: "~/.config/starship.toml"

- from:
relative_path: "tmux.conf"
to:
absolute_path: "~/.config/tmux/tmux.conf"
dockutil:
_before:
reset: true
Expand Down
Loading

0 comments on commit 3e47806

Please sign in to comment.