From 0448e23bad7cb582bdbdf5598a239c46758b372c Mon Sep 17 00:00:00 2001 From: takyshu98 Date: Mon, 8 Jan 2024 12:30:45 +0900 Subject: [PATCH] WIP --- .config/sheldon/plugins.toml | 11 +++++------ .config/zsh/.zshrc | 2 +- .gitignore | 1 + install.sh | 4 ++-- scripts/symlink.sh | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.config/sheldon/plugins.toml b/.config/sheldon/plugins.toml index c9b473e..70c0742 100644 --- a/.config/sheldon/plugins.toml +++ b/.config/sheldon/plugins.toml @@ -15,7 +15,7 @@ shell = "zsh" # set default loading async apply = ["defer"] -# https://sheldon.cli.rs/Examples.html#deferred-loading-of-plugins-in-zsh +# ref: https://sheldon.cli.rs/Examples.html#deferred-loading-of-plugins-in-zsh [templates] defer = "{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}" @@ -33,7 +33,7 @@ apply = ["source"] [plugins.compinit] inline = 'autoload -Uz compinit && zsh-defer compinit' -# https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh +# ref: https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh [plugins.brew-completion] inline = 'type brew &>/dev/null && FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"' @@ -51,12 +51,11 @@ github = "olets/zsh-abbr" use=["zsh-abbr.zsh"] apply = ["source"] -# [plugins.asdf] -# github = "asdf-vm/asdf" - [plugins.enhancd] github = "b4b4r07/enhancd" -use=["init.sh"] + +# [plugins.asdf] +# github = "asdf-vm/asdf" [plugins.starship] inline = 'eval "$(starship init zsh)"' \ No newline at end of file diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 1da48d5..75dfcb9 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -17,7 +17,7 @@ bindkey -e alias ls='ls -FG' # set history options -export HISTFILE="${HOME}/.zsh_history" +export HISTFILE="${ZDOTDIR}/.zsh_history" export HISTSIZE=3000 export SAVEHIST=3000 diff --git a/.gitignore b/.gitignore index a700cbe..98ce208 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store .config/zsh/.zcompdump +.config/zsh/.zsh_history Brewfile.lock.json \ No newline at end of file diff --git a/install.sh b/install.sh index 11e0f54..21fde2c 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ if ! command -v brew >/dev/null 2>&1; then echo fi -# export brew path +# export brew path to homebrew bundle if [ "${arch_type}" = "i386" ]; then export PATH="/usr/local/bin:${PATH}" # for Intel elif [ "${arch_type}" = "arm64" ]; then @@ -43,7 +43,7 @@ fi scripts/defaults.sh echo -# symlink and mkdir +# make symbolic links and directories scripts/symlink.sh echo diff --git a/scripts/symlink.sh b/scripts/symlink.sh index 6a33c6a..2f5b8b2 100755 --- a/scripts/symlink.sh +++ b/scripts/symlink.sh @@ -28,9 +28,9 @@ find "${DOTPATH}/.config" -maxdepth 1 -exec ln -fvns {} "${XDG_CONFIG_HOME}" \; mkdir -p ~/bin # for original commands find "${DOTPATH}/bin/" -type f -perm 0755 -exec ln -fvns {} ~/bin/ \; -mkdir -p ~/src # for local code repositories +mkdir -p ~/src # for code repositories -mkdir -p ~/tmp # for local temporary space +mkdir -p ~/tmp # for temporary space ## shellcheck disable=SC2174 ## https://github.com/koalaman/shellcheck/wiki/SC2174