Skip to content

Commit

Permalink
✨ use zoxide instead of fasd
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhomer committed Dec 17, 2023
1 parent a3aac88 commit 626c8d6
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 76 deletions.
2 changes: 1 addition & 1 deletion bin/dotme-brew
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ brew update

log:: "upgrading brew"
# Upgrade any already installed formulae
brew upgrade --ignore-pinned
brew upgrade
log:: "upgraded brew"

cd $DOTFILES_DIR/config/brew
Expand Down
2 changes: 1 addition & 1 deletion config/brew/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ brew "coreutils"
brew "dos2unix"
# Should use eza instead of exa
# brew "exa"
brew "fasd"
brew "fd"
brew "findutils"
brew "fish"
Expand Down Expand Up @@ -72,6 +71,7 @@ brew "universal-ctags"
brew "vim"
brew "watch"
brew "wget"
brew "zoxide"

cask "kitty"
cask "iterm2"
Expand Down
102 changes: 100 additions & 2 deletions config/brew/Brewfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4055,6 +4055,104 @@
}
}
}
},
"zoxide": {
"version": "0.9.2",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_sonoma": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:130c9a0c0e3c4cf09388bb04ee722140508e213949ebb92efda5f57fb897481e",
"sha256": "130c9a0c0e3c4cf09388bb04ee722140508e213949ebb92efda5f57fb897481e"
},
"arm64_ventura": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:49f1719c65eec1a3657c6162bb1f768717101df99d7ca3441d305fd3c80fea51",
"sha256": "49f1719c65eec1a3657c6162bb1f768717101df99d7ca3441d305fd3c80fea51"
},
"arm64_monterey": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:d88fcbbcfb4ec79355338a1c908c921d32b918495fdaf52adf2494a35cbd7b86",
"sha256": "d88fcbbcfb4ec79355338a1c908c921d32b918495fdaf52adf2494a35cbd7b86"
},
"arm64_big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:af613b9c960a8e755619f1f0397c897fd6f5d15c8f53ed7ffa12ec0202be7f7e",
"sha256": "af613b9c960a8e755619f1f0397c897fd6f5d15c8f53ed7ffa12ec0202be7f7e"
},
"sonoma": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:02ebf032157f82cdab906109a76e98b7a8ad9665966fcc5793295ce7e31d0e13",
"sha256": "02ebf032157f82cdab906109a76e98b7a8ad9665966fcc5793295ce7e31d0e13"
},
"ventura": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:167c8f49d8e8139de86afb96d825de815332adca5960ddb92260b4d51e464fd3",
"sha256": "167c8f49d8e8139de86afb96d825de815332adca5960ddb92260b4d51e464fd3"
},
"monterey": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:3176f2c6aa53131db5502c455495f5ebd3be869468621b2e37c53b054a37b28d",
"sha256": "3176f2c6aa53131db5502c455495f5ebd3be869468621b2e37c53b054a37b28d"
},
"big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:43fea705f20177f4e8b8558a00679ee016199f3787389040e7c8d7944a545953",
"sha256": "43fea705f20177f4e8b8558a00679ee016199f3787389040e7c8d7944a545953"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/zoxide/blobs/sha256:657c7e0554270cf878dfc3ab249ab7721842655464ecb302e48737c1a8f76f42",
"sha256": "657c7e0554270cf878dfc3ab249ab7721842655464ecb302e48737c1a8f76f42"
}
}
}
},
"direnv": {
"version": "2.33.0",
"bottle": {
"rebuild": 1,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_sonoma": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:b1795e6743e0bb769f92d07aa5d2401c57b7bee715fc68894c2f5d1c95aba013",
"sha256": "b1795e6743e0bb769f92d07aa5d2401c57b7bee715fc68894c2f5d1c95aba013"
},
"arm64_ventura": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:1c2d6d8b0bdc071b4344600ec914dd52f521c3d21f9fd38a6e218e65cc50fb36",
"sha256": "1c2d6d8b0bdc071b4344600ec914dd52f521c3d21f9fd38a6e218e65cc50fb36"
},
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:1e365c468da6a471f28c21ef11871641f8414d1c45b9710509884a9aa8b6fe78",
"sha256": "1e365c468da6a471f28c21ef11871641f8414d1c45b9710509884a9aa8b6fe78"
},
"sonoma": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:cd4b008579b836b43778c197cfa953cb3934505db0e65053ae5a9d4c10155c60",
"sha256": "cd4b008579b836b43778c197cfa953cb3934505db0e65053ae5a9d4c10155c60"
},
"ventura": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:55781935916235989a46904640a4728a0a3dc24228db7cc9dbac5954b95e52dd",
"sha256": "55781935916235989a46904640a4728a0a3dc24228db7cc9dbac5954b95e52dd"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:6b0c4abed5b230f6e3112df41f9019dd8291a5cb3c82e3337471e2b4aa5e28ea",
"sha256": "6b0c4abed5b230f6e3112df41f9019dd8291a5cb3c82e3337471e2b4aa5e28ea"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/direnv/blobs/sha256:65deffe8cb70793402e4ac64655d9805b0b84f174fe8a32dd0722d1781bc4a1f",
"sha256": "65deffe8cb70793402e4ac64655d9805b0b84f174fe8a32dd0722d1781bc4a1f"
}
}
}
}
}
},
Expand Down Expand Up @@ -4085,11 +4183,11 @@
"macOS": "13.5.2"
},
"sonoma": {
"HOMEBREW_VERSION": "4.1.25",
"HOMEBREW_VERSION": "4.1.25-79-g3431996",
"HOMEBREW_PREFIX": "/opt/homebrew",
"Homebrew/homebrew-core": "api",
"CLT": "15.1.0.0.1.1700200546",
"Xcode": "15.0",
"Xcode": "15.1",
"macOS": "14.2"
}
}
Expand Down
10 changes: 2 additions & 8 deletions dotfiles/bash/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@ if ! command -v dotme &> /dev/null ; then
PATH=$PATH:$HOME/.dotfiles/bin
fi

if command -v fasd &> /dev/null ; then
# Initialise fasd https://github.com/clvv/fasd
fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache"
fi
source ~/.fasd-init-bash
unset fasd_cache
if command -v zoxide &> /dev/null ; then
eval "$(zoxide init bash)"
fi

# Inline br function, this comes from
Expand Down
1 change: 1 addition & 0 deletions dotfiles/fish/.config/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ end

starship init fish | source
direnv hook fish | source
zoxide init fish | source

# Things bind

Expand Down
61 changes: 0 additions & 61 deletions dotfiles/fish/.config/fish/functions/cd.fish

This file was deleted.

4 changes: 1 addition & 3 deletions test/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 626c8d6

Please sign in to comment.