Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
takyshu98 committed Jan 8, 2024
1 parent 2eb258b commit 0448e23
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
11 changes: 5 additions & 6 deletions .config/sheldon/plugins.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}"

Expand All @@ -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}"'

Expand All @@ -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)"'
2 changes: 1 addition & 1 deletion .config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
.config/zsh/.zcompdump
.config/zsh/.zsh_history
Brewfile.lock.json
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,7 +43,7 @@ fi
scripts/defaults.sh
echo

# symlink and mkdir
# make symbolic links and directories
scripts/symlink.sh
echo

Expand Down
4 changes: 2 additions & 2 deletions scripts/symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0448e23

Please sign in to comment.