Skip to content

Commit

Permalink
update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
killwing committed Sep 6, 2019
1 parent 0d6601c commit c9da1d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ shopt -s checkwinsize
stty -ixon

# paths
export PATH=/usr/local/bin:$HOME/.myenv/scripts:$PATH
export PATH=/usr/local/bin:$HOME/bin:$HOME/.myenv/scripts:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export NODE_PATH=/usr/local:/usr/local/lib/node_modules

Expand Down Expand Up @@ -159,7 +159,7 @@ alias sf='sift --git --group -n'
alias ris='printf "\033c"' # hard reset

alias denter='screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty'
#alias git=hub
alias git=hub
alias kc=kubectl
alias_completion kc
alias de='docker'
Expand Down
14 changes: 14 additions & 0 deletions install_tools_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [ ! -d $HOME/bin ]; then
fi
cd $HOME/bin

# git completion
if [ -f /usr/share/git/completion/git-completion.bash ]; then
ln -sfv /usr/share/git/completion/git-completion.bash ./git-completion.bash
elif [ -f /usr/share/bash-completion/completions/git ]; then
Expand All @@ -15,12 +16,25 @@ else
curl -OL https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
fi

# git prompt
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
ln -sfv /usr/share/git/completion/git-prompt.sh ./git-prompt.sh
else
curl -OL https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
fi

# z
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

# 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
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

cd -

0 comments on commit c9da1d9

Please sign in to comment.