Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions docs/00_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,3 @@ ghq でリポジトリを管理する場合は以下のようになる。
name = Foo Bar
email = foo@example.com
```

## 補完を追加 (必要なら)

補完が必要な場合,`scripts/utils/download-completions.zsh` を使って補完をローカルの補完( `~/.zsh/local/completions/`) へ追加する。
更新する時も同じスクリプトを使う。

```bash
$ zsh scripts/utils/download-completions.zsh
```
31 changes: 0 additions & 31 deletions scripts/utils/download-completions.zsh

This file was deleted.

31 changes: 28 additions & 3 deletions symlinks/dirs/.zsh/custom/completion.zsh
Original file line number Diff line number Diff line change
@@ -1,13 +1,38 @@
# コマンドの補完の設定を行うファイル
#
# コマンドの引数でシェルの補完を作成出来る場合は, このファイルで行う.
# コマンドの引数でシェルの補完を作成出来る場合はこのファイルで行う

# gh コマンドの補完設定
# gh
if type "gh" > /dev/null 2>&1; then
eval "$(gh completion -s zsh)"
fi

# brew コマンドの補完設定
# brew
if type "brew" > /dev/null 2>&1; then
FPATH="$(brew --prefix)/share/zsh/site-functions:$FPATH"
fi

# docker
if type "docker" > /dev/null 2>&1; then
eval "$(docker completion zsh)"
fi

# Kubernetes
if type "docker" > /dev/null 2>&1; then
eval "$(kubectl completion zsh)"
fi

# minikube
if type "minikube" > /dev/null 2>&1; then
eval "$(minikube completion zsh)"
fi

# task
if type "task" > /dev/null 2>&1; then
eval "$(task --completion zsh)"
fi

# mise
if type "mise" > /dev/null 2>&1; then
eval "$(mise completion zsh)"
fi
5 changes: 0 additions & 5 deletions symlinks/dirs/.zsh/custom/local.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ export PATH="${HOME}/bin-local:$PATH"

# Local のみの補完を設定
fpath=(~/.zsh/local/completions $fpath)

# Cargo の設定
if [ -f "$HOME/.cargo/env" ];then
source "$HOME/.cargo/env"
fi
15 changes: 0 additions & 15 deletions symlinks/dirs/.zsh/init/env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,3 @@ export VISUAL="vim"
# Golang
export GOPATH=~/go
export PATH=$PATH:~/go/bin

# Rust (macOS)
if type "brew" > /dev/null 2>&1; then
export PATH="$(brew --prefix bison)/bin:$PATH"
export PATH="$(brew --prefix libxml2)/bin:$PATH"
export PATH="$(brew --prefix bzip2)/bin:$PATH"
export PATH="$(brew --prefix curl)/bin:$PATH"
export PATH="$(brew --prefix libiconv)/bin:$PATH"
export PATH="$(brew --prefix krb5)/bin:$PATH"
export PATH="$(brew --prefix openssl@1.1)/bin:$PATH"
export PATH="$(brew --prefix icu4c)/bin:$PATH"
export PKG_CONFIG_PATH="$(brew --prefix krb5)/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_PATH="$(brew --prefix openssl@1.1)/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
3 changes: 1 addition & 2 deletions symlinks/files/auto-link/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi


# $PATHを設定
export PATH="$HOME/bin:/opt/homebrew/bin:$HOME/.composer/vendor/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/local/heroku/bin:$PATH"
export PATH="$HOME/bin:/opt/homebrew/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:/usr/local/bin:$PATH"

# 優先的に読み込む設定
for file in `ls -1 ~/.zsh/init/*.zsh`;do
Expand Down