[feature] skip installation if already installed
This commit is contained in:
parent
060f02c9ef
commit
3d4c28abc6
|
@ -8,6 +8,7 @@ TMUX_VER=3.1b
|
|||
# install ranger
|
||||
case "$PM" in
|
||||
apt)
|
||||
if which tmux &>/dev/null && [ "$(tmux -V)" != "tmux $TMUX_VER" ]; then
|
||||
sudo apt install libevent-dev libncurses5-dev bison autoconf bc -y
|
||||
TMUX_SRC_URL=https://github.com/tmux/tmux/releases/download/$TMUX_VER/tmux-$TMUX_VER.tar.gz
|
||||
if in-china; then
|
||||
|
@ -23,6 +24,7 @@ case "$PM" in
|
|||
sudo make install
|
||||
popd
|
||||
rm -rf /tmp/tmux*
|
||||
fi
|
||||
;;
|
||||
pacman)
|
||||
sudo pacman -S --needed tmux bc
|
||||
|
@ -31,4 +33,5 @@ esac
|
|||
|
||||
# symlink configuration
|
||||
lnsf $DIR/tmux.conf ~/.tmux.conf
|
||||
lnsf $DIR/config $XDG_CONFIG_HOME/tmux
|
||||
lnsf $DIR/config/tmux2.8.conf $XDG_CONFIG_HOME/tmux/tmux2.8.conf
|
||||
lnsf $DIR/config/tmux2.9.conf $XDG_CONFIG_HOME/tmux/tmux2.9.conf
|
||||
|
|
Loading…
Reference in New Issue
Block a user