Compare commits

...

2 Commits

Author SHA1 Message Date
syui ef7f0e3949 fix 2 years ago
syui 59bd2cc713 fix 2 years ago
  1. 10
      .zshrc
  2. 16
      setup.sh

10
.zshrc

@ -25,7 +25,6 @@ zinit ice from"gh-r" as"program" mv"docker* -> docker-compose" bpick"*linux*"
zinit load docker/compose
zinit ice as"program" atclone"rm -f src/auto/config.cache; ./configure" \
atpull"%atclone" make pick"src/vim"
zinit light vim/vim
zinit ice as"program" pick"$ZPFX/bin/git-*" make"PREFIX=$ZPFX"
zinit light tj/git-extras
zinit light mollifier/cd-gitroot
@ -44,6 +43,7 @@ zinit snippet OMZ::plugins/gnu-utils/gnu-utils.plugin.zsh
zinit snippet OMZ::plugins/zsh_reload/zsh_reload.plugin.zsh
zinit snippet OMZ::lib/completion.zsh
zinit snippet OMZ::lib/compfix.zsh
#zinit light vim/vim
#zinit light sindresorhus/pure
#zinit creinstall ~/zsh_completions
@ -126,6 +126,12 @@ fi
zle -N peco-z-search
bindkey '\e' peco-z-search
case $OSTYPE in
linux*)
bindkey '^j' peco-z-search
;;
esac
#^k up
function cdup_dir() {
if [[ -z "$BUFFER" ]]; then
@ -159,7 +165,7 @@ case ${OSTYPE} in
print -rn $BUFFER | pbcopy
;;
linux*)
print -rn $BUFFER | xclip -i -selection clipboard
print -rn $BUFFER | xclip -i -sel c
;;
cygwin*)
print -rn $BUFFER | putclip

16
setup.sh

@ -1,5 +1,21 @@
#!/bin/zsh
if [ ! -d ~/git/mstdn.zsh ];then
mkdir -p ~/git
cd ~/git
git clone https://github.com/syui/mstdn.zsh
fi
if [ ! -f ~/go/bin/peco ];then
mkdir -p ~/git
cd ~/git
git clone https://github.com/peco/peco
cd peco
go build cmd/peco/peco.go
mkdir -p ~/go/bin
cp peco ~/go/bin
fi
case $OSTYPE in
darwin*)
if ! which unbuffer > /dev/null 2>&1;then

Loading…
Cancel
Save