1
0
Fork 0

Add thefuck

main
Ambrose Chua 2018-04-02 23:05:10 +08:00
parent d46e525ec9
commit 820ebeaa5a
5 changed files with 31 additions and 1 deletions

View File

@ -20,6 +20,7 @@ RUN ./.install/zsh.sh
RUN ./.install/neovim.sh
# shell config, env manager
RUN ./.install/zsh-pure.sh
RUN ./.install/thefuck.sh
RUN ./.install/yadm.sh
# languages
RUN ./.install/golang.sh

View File

@ -17,6 +17,12 @@ pipeline:
- ./.install/neovim.sh
- nvim -version
- nvim +checkhealth +qa
test-thefuck:
group: test
image: alpine:latest
commands:
- ./.install/thefuck.sh
- thefuck -v
test-yadm:
group: test
image: alpine:latest

View File

@ -4,7 +4,7 @@ set -e
source ./.versions
echo
echo "Installing pure-prompt for ZSH..."
echo "Installing pure-prompt for zsh..."
echo
mkdir -p /usr/local/share/zsh/site-functions

20
.install/thefuck.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh
set -e
source ./.versions
echo
echo "Installing thefuck for zsh..."
echo
apk add --no-cache --virtual .build-deps \
build-base \
python3-dev \
linux-headers
apk add --no-cache \
python3
pip3 install thefuck
apk del .build-deps

3
.zshrc
View File

@ -21,6 +21,9 @@ setopt extended_glob
autoload -U promptinit; promptinit
prompt pure
# thefuck
eval $(thefuck --alias nope)
# golang
export PATH="$(go env GOPATH)/bin:$PATH"