Do not link bin files into HOME/bin
This commit is contained in:
parent
e5d8d5c5e6
commit
6e93ae5092
6
.bashrc
6
.bashrc
@ -63,8 +63,10 @@ export TERM="xterm-256color"
|
|||||||
export EDITOR=$(which vim)
|
export EDITOR=$(which vim)
|
||||||
|
|
||||||
# Adding applications to path
|
# Adding applications to path
|
||||||
if [[ -d ${HOME}/bin ]];
|
if [[ -d ${HOME}/.dotfiles/bin/linux ]]; then
|
||||||
then
|
export PATH=$PATH:${HOME}/.dotfiles/bin/linux
|
||||||
|
fi
|
||||||
|
if [[ -d ${HOME}/bin ]]; then
|
||||||
export PATH=$PATH:${HOME}/bin
|
export PATH=$PATH:${HOME}/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
1
bin/linux/bat
Symbolic link
1
bin/linux/bat
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
bat-0.18.2
|
1
bin/linux/delta
Symbolic link
1
bin/linux/delta
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
delta-0.14.0
|
1
bin/linux/difft
Symbolic link
1
bin/linux/difft
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
difft-0.38.0
|
1
bin/linux/dive
Symbolic link
1
bin/linux/dive
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
dive-0.10.0
|
1
bin/linux/exa
Symbolic link
1
bin/linux/exa
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
exa-0.10.0
|
1
bin/linux/jq
Symbolic link
1
bin/linux/jq
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
jq-1.6
|
Binary file not shown.
Binary file not shown.
BIN
bin/osx/jq-1.6
BIN
bin/osx/jq-1.6
Binary file not shown.
32
install.sh
32
install.sh
@ -20,16 +20,6 @@ GIT_REPO_BASE="https://github.com/tgrosinger/dotfiles"
|
|||||||
GIT_REPO="${GIT_REPO_BASE}.git"
|
GIT_REPO="${GIT_REPO_BASE}.git"
|
||||||
REPO_TAR="${GIT_REPO_BASE}/archive/master.tar.gz"
|
REPO_TAR="${GIT_REPO_BASE}/archive/master.tar.gz"
|
||||||
|
|
||||||
|
|
||||||
if [[ "${OSTYPE}" == "linux-gnu"* ]]; then
|
|
||||||
BIN_DIR="bin/linux"
|
|
||||||
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
||||||
BIN_DIR="bin/osx"
|
|
||||||
else
|
|
||||||
echo "Unknown OS type"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Define functions
|
# Define functions
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -39,11 +29,6 @@ function linkFile() {
|
|||||||
ln -fns ${DOTFILES_DIR}/$1 $1;
|
ln -fns ${DOTFILES_DIR}/$1 $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Remove a file if it exists then create a symlink from the file in $HOME/bin to the one contained in ${DOTFILES_DIR}
|
|
||||||
function linkBin() {
|
|
||||||
ln -fns ${DOTFILES_DIR}/$1 $HOME/bin/$2;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create a directory named by first parameter. Delete directory first if it already exists.
|
# Create a directory named by first parameter. Delete directory first if it already exists.
|
||||||
function createDirectory() {
|
function createDirectory() {
|
||||||
if [ -d $1 ]; then rm -rf $1; fi
|
if [ -d $1 ]; then rm -rf $1; fi
|
||||||
@ -62,11 +47,6 @@ function performSetup() {
|
|||||||
echo "Moving to Home directory..."
|
echo "Moving to Home directory..."
|
||||||
pushd ${home} > /dev/null
|
pushd ${home} > /dev/null
|
||||||
|
|
||||||
if [ ! -d bin ]; then
|
|
||||||
echo "Creating a bin directory..."
|
|
||||||
mkdir bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Linking shell configs..."
|
echo "Linking shell configs..."
|
||||||
linkFile ".bashrc"
|
linkFile ".bashrc"
|
||||||
|
|
||||||
@ -84,18 +64,6 @@ function performSetup() {
|
|||||||
echo "Linking inputrc..."
|
echo "Linking inputrc..."
|
||||||
linkFile ".inputrc"
|
linkFile ".inputrc"
|
||||||
|
|
||||||
echo "Linking bin files"
|
|
||||||
linkBin "${BIN_DIR}/exa-0.10.0" "exa"
|
|
||||||
linkBin "${BIN_DIR}/bat-0.18.2" "bat"
|
|
||||||
linkBin "${BIN_DIR}/jq-1.6" "jq"
|
|
||||||
linkBin "${BIN_DIR}/difft-0.38.0" "difft"
|
|
||||||
linkBin "${BIN_DIR}/delta-0.14.0" "delta"
|
|
||||||
linkBin "${BIN_DIR}/dive-0.10.0" "dive"
|
|
||||||
|
|
||||||
echo "Linking scripts"
|
|
||||||
linkBin "scripts/git-safedel" "git-safedel"
|
|
||||||
linkBin "scripts/git-top" "git-top"
|
|
||||||
|
|
||||||
echo "Installing tmux plugins"
|
echo "Installing tmux plugins"
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user