[bugfix] parent dir path
This commit is contained in:
parent
45f7757926
commit
ee5c34de4a
|
@ -10,7 +10,7 @@ case "$PM" in
|
|||
# snap docker will intefere native docker.io, must be dealt with
|
||||
sudo snap remove --purge docker
|
||||
sudo apt install -y docker.io docker-compose
|
||||
! command -v pip3 && "$ROOT/python/install.sh"
|
||||
! command -v pip3 && "$PDIR/python/install.sh"
|
||||
sudo pip3 install docker-compose
|
||||
;;
|
||||
pacman)
|
||||
|
|
|
@ -4,7 +4,7 @@ DIR=$(readlink -f "$(dirname "$0")")
|
|||
. "$DIR/../env.sh"
|
||||
|
||||
|
||||
"$ROOT/python/install.sh"
|
||||
"$PDIR/python/install.sh"
|
||||
|
||||
# install deep learning tools
|
||||
case "$PM" in
|
||||
|
|
6
env.sh
6
env.sh
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
ROOT=$(readlink -f "$(dirname "$0")")
|
||||
PM=n/a
|
||||
XDG_CONFIG_HOME=${XDG_CONFIG_HOME-"$HOME/.config"}
|
||||
echo "dotfiles path: $ROOT"
|
||||
PDIR=$(dirname $DIR)
|
||||
echo "dir: $DIR"
|
||||
echo "parent dir: $PDIR"
|
||||
|
||||
if command -v pacman > /dev/null; then
|
||||
PM=pacman
|
||||
|
|
|
@ -7,7 +7,7 @@ DIR=$(readlink -f "$(dirname "$0")")
|
|||
echo Installing fish shell
|
||||
case "$PM" in
|
||||
apt)
|
||||
! command -v pip3 && "$ROOT/python/install.sh"
|
||||
! command -v pip3 && "$PDIR/python/install.sh"
|
||||
sudo add-apt-repository ppa:fish-shell/release-3 -y
|
||||
sudo apt update
|
||||
sudo apt install fish libnotify-bin xdotool silversearcher-ag dash -y
|
||||
|
|
|
@ -4,8 +4,8 @@ DIR=$(readlink -f "$(dirname "$0")")
|
|||
. "$DIR/../env.sh"
|
||||
|
||||
# check dependencies
|
||||
! command -v yarnpkg && "$ROOT/nodejs/install.sh"
|
||||
! command -v pip && "$ROOT/python/install.sh"
|
||||
! command -v yarnpkg && "$PDIR/nodejs/install.sh"
|
||||
! command -v pip && "$PDIR/python/install.sh"
|
||||
|
||||
# install nvim
|
||||
case "$PM" in
|
||||
|
|
|
@ -9,7 +9,7 @@ DIR=$(readlink -f "$(dirname "$0")")
|
|||
case "$PM" in
|
||||
apt)
|
||||
# install build tools
|
||||
! command -v pip3 && "$ROOT/python/install.sh"
|
||||
! command -v pip3 && "$PDIR/python/install.sh"
|
||||
sudo pip3 install meson
|
||||
# install dependencies
|
||||
sudo apt install -y ninja-build libxext-dev libxcb1-dev libxcb-damage0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-randr0-dev libxcb-composite0-dev libxcb-image0-dev libxcb-present-dev libxcb-xinerama0-dev libxcb-glx0-dev libpixman-1-dev libdbus-1-dev libconfig-dev libgl1-mesa-dev libpcre3-dev libevdev-dev uthash-dev libev-dev libx11-xcb-dev
|
||||
|
|
|
@ -9,7 +9,7 @@ case "$PM" in
|
|||
apt)
|
||||
# atool/p7zip-full for archive previewing/extracting etc
|
||||
sudo apt install -y atool p7zip-full unrar highlight
|
||||
! command -v pip3 && "$ROOT/python/install.sh"
|
||||
! command -v pip3 && "$PDIR/python/install.sh"
|
||||
sudo pip3 install ranger-fm ueberzug
|
||||
;;
|
||||
pacman)
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
DIR=$(readlink -f "$(dirname "$0")")
|
||||
. "$DIR/../env.sh"
|
||||
|
||||
"$ROOT/fish/install.sh"
|
||||
"$ROOT/gui/install.sh"
|
||||
"$ROOT/picom/install.sh"
|
||||
"$ROOT/dunst/install.sh"
|
||||
"$PDIR/fish/install.sh"
|
||||
"$PDIR/gui/install.sh"
|
||||
"$PDIR/picom/install.sh"
|
||||
"$PDIR/dunst/install.sh"
|
||||
|
||||
# install dependencies
|
||||
case "$PM" in
|
||||
|
|
Loading…
Reference in New Issue
Block a user