Mercurial > dotfiles
comparison .chezmoiscripts/run_once_after_99-build-zsh-histdb-skim.sh.tmpl @ 686:e486254ef420
fix: improve asdf installer script
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 02 Oct 2022 18:22:00 +0200 |
parents | 189d0c688639 |
children | 6aabd0b8d766 |
comparison
equal
deleted
inserted
replaced
685:189d0c688639 | 686:e486254ef420 |
---|---|
1 {{ if (or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin")) -}} | 1 {{ if (or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin")) -}} |
2 #!/usr/bin/env zsh | 2 #!/usr/bin/env zsh |
3 | 3 |
4 source $(brew --prefix asdf)/libexec/asdf.sh | |
4 asdf shell rust 1.64.0 | 5 asdf shell rust 1.64.0 |
5 brew unlink sqlite | 6 brew unlink sqlite |
6 | 7 |
7 git clone https://github.com/zegervdv/zsh-histdb-skim $HOME/.local/share/zsh-histdb-skim | 8 HISTDB_SKIM_DIR="$HOME/.local/share/zsh-histdb-skim" |
8 cd $HOME/.local/share/zsh-histdb-skim | 9 if [[ -d "$HISTDB_SKIM_DIR" ]] |
10 then | |
11 cd "$HISTDB_SKIM_DIR" | |
12 git pull | |
13 else | |
14 git clone https://github.com/zegervdv/zsh-histdb-skim "$HISTDB_SKIM_DIR" | |
15 fi | |
16 cd "$HISTDB_SKIM_DIR" | |
17 | |
9 cargo build --release | 18 cargo build --release |
10 cp target/release/zsh-histdb-skim zsh-histdb-skim | 19 cp target/release/zsh-histdb-skim zsh-histdb-skim |
11 | 20 |
12 {{ end -}} | 21 {{ end -}} |