[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
|
# snap docker will intefere native docker.io, must be dealt with
|
||||||
sudo snap remove --purge docker
|
sudo snap remove --purge docker
|
||||||
sudo apt install -y docker.io docker-compose
|
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
|
sudo pip3 install docker-compose
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
|
|
|
@ -4,7 +4,7 @@ DIR=$(readlink -f "$(dirname "$0")")
|
||||||
. "$DIR/../env.sh"
|
. "$DIR/../env.sh"
|
||||||
|
|
||||||
|
|
||||||
"$ROOT/python/install.sh"
|
"$PDIR/python/install.sh"
|
||||||
|
|
||||||
# install deep learning tools
|
# install deep learning tools
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
|
|
6
env.sh
6
env.sh
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
|
||||||
ROOT=$(readlink -f "$(dirname "$0")")
|
|
||||||
PM=n/a
|
PM=n/a
|
||||||
XDG_CONFIG_HOME=${XDG_CONFIG_HOME-"$HOME/.config"}
|
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
|
if command -v pacman > /dev/null; then
|
||||||
PM=pacman
|
PM=pacman
|
||||||
|
|
|
@ -7,7 +7,7 @@ DIR=$(readlink -f "$(dirname "$0")")
|
||||||
echo Installing fish shell
|
echo Installing fish shell
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
apt)
|
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 add-apt-repository ppa:fish-shell/release-3 -y
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install fish libnotify-bin xdotool silversearcher-ag dash -y
|
sudo apt install fish libnotify-bin xdotool silversearcher-ag dash -y
|
||||||
|
|
|
@ -4,8 +4,8 @@ DIR=$(readlink -f "$(dirname "$0")")
|
||||||
. "$DIR/../env.sh"
|
. "$DIR/../env.sh"
|
||||||
|
|
||||||
# check dependencies
|
# check dependencies
|
||||||
! command -v yarnpkg && "$ROOT/nodejs/install.sh"
|
! command -v yarnpkg && "$PDIR/nodejs/install.sh"
|
||||||
! command -v pip && "$ROOT/python/install.sh"
|
! command -v pip && "$PDIR/python/install.sh"
|
||||||
|
|
||||||
# install nvim
|
# install nvim
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
|
|
|
@ -9,7 +9,7 @@ DIR=$(readlink -f "$(dirname "$0")")
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
apt)
|
apt)
|
||||||
# install build tools
|
# install build tools
|
||||||
! command -v pip3 && "$ROOT/python/install.sh"
|
! command -v pip3 && "$PDIR/python/install.sh"
|
||||||
sudo pip3 install meson
|
sudo pip3 install meson
|
||||||
# install dependencies
|
# 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
|
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)
|
apt)
|
||||||
# atool/p7zip-full for archive previewing/extracting etc
|
# atool/p7zip-full for archive previewing/extracting etc
|
||||||
sudo apt install -y atool p7zip-full unrar highlight
|
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
|
sudo pip3 install ranger-fm ueberzug
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
DIR=$(readlink -f "$(dirname "$0")")
|
DIR=$(readlink -f "$(dirname "$0")")
|
||||||
. "$DIR/../env.sh"
|
. "$DIR/../env.sh"
|
||||||
|
|
||||||
"$ROOT/fish/install.sh"
|
"$PDIR/fish/install.sh"
|
||||||
"$ROOT/gui/install.sh"
|
"$PDIR/gui/install.sh"
|
||||||
"$ROOT/picom/install.sh"
|
"$PDIR/picom/install.sh"
|
||||||
"$ROOT/dunst/install.sh"
|
"$PDIR/dunst/install.sh"
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
|
|
Loading…
Reference in New Issue
Block a user