Skip to content

Commit

Permalink
update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
killwing committed Sep 8, 2019
1 parent c9da1d9 commit 6903d93
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ function lslp {
. $HOME/bin/z.sh

# kubectl
. /usr/local/opt/kube-ps1/share/kube-ps1.sh
. $HOME/bin/kube-ps1.sh

# fzf
. $HOME/bin/.fzf/shell/completion.bash
. $HOME/bin/.fzf/shell/key-bindings.bash

# source local file
if [ -e "$HOME/.bash_local" ]; then
Expand Down
13 changes: 12 additions & 1 deletion install_tools_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ curl -OL https://raw.githubusercontent.com/rupa/z/master/z.sh

# hub
curl -L -o hub.tgz https://github.com/github/hub/releases/download/v2.12.3/hub-linux-amd64-2.12.3.tgz && tar xzvf hub.tgz && rm hub.tgz
cp hub-linux-amd64-2.12.3/bin/hub ./hub && \rm -rf ./hub-linux-amd64-2.12.3
ln -svf hub-linux-amd64-2.12.3/bin/hub ./hub

# sift
curl -L -o sift.tgz https://sift-tool.org/downloads/sift/sift_0.9.0_linux_amd64.tar.gz && tar xzvf sift.tgz && rm sift.tgz
Expand All @@ -37,4 +37,15 @@ cp sift_0.9.0_linux_amd64/sift ./sift && \rm -rf ./sift_0.9.0_linux_amd64
# fd
curl -L -o fd.deb https://github.com/sharkdp/fd/releases/download/v7.3.0/fd_7.3.0_amd64.deb && dpkg -i fd.deb && rm fd.deb

# kubectx
curl -L -o kubectl-ctx https://raw.githubusercontent.com/ahmetb/kubectx/master/kubectx && chmod +x kubectl-ctx
curl -L -o kubectl-ns https://raw.githubusercontent.com/ahmetb/kubectx/master/kubens && chmod +x kubectl-ns

# kube-ps1
curl -OL https://raw.githubusercontent.com/jonmosco/kube-ps1/master/kube-ps1.sh

# fzf
git clone --depth 1 https://github.com/junegunn/fzf.git .fzf && .fzf/install --bin
ln -sfv .fzf/bin/fzf ./fzf

cd -

0 comments on commit 6903d93

Please sign in to comment.