Move bash config to shell subdir
This commit is contained in:
18
Makefile
18
Makefile
@@ -2,7 +2,7 @@ BUILD_COMMIT = $(shell git rev-parse HEAD)
|
|||||||
BASE_IMAGE = registry.fedoraproject.org/fedora-toolbox
|
BASE_IMAGE = registry.fedoraproject.org/fedora-toolbox
|
||||||
BASE_IMAGE_VERSION = $(shell cat /etc/os-release | grep VERSION_ID | cut -d = -f 2)
|
BASE_IMAGE_VERSION = $(shell cat /etc/os-release | grep VERSION_ID | cut -d = -f 2)
|
||||||
REPOSITORY = localhost/toolbox-dev-env
|
REPOSITORY = localhost/toolbox-dev-env
|
||||||
STARSHIP_COLOR = $(shell cat starship.$(HOSTNAME).color)
|
STARSHIP_COLOR = $(shell cat shell/starship.$(HOSTNAME).color)
|
||||||
|
|
||||||
.PHONY: toolbox
|
.PHONY: toolbox
|
||||||
toolbox:
|
toolbox:
|
||||||
@@ -12,8 +12,8 @@ toolbox:
|
|||||||
systemctl --user enable podman.socket --now
|
systemctl --user enable podman.socket --now
|
||||||
systemctl --user enable podman.service --now
|
systemctl --user enable podman.service --now
|
||||||
|
|
||||||
.PHONY: container
|
.PHONY: shell
|
||||||
scripts:
|
shell:
|
||||||
mkdir --parents ~/.local/share/fonts/
|
mkdir --parents ~/.local/share/fonts/
|
||||||
curl -sSLo ~/.local/share/fonts/nerdfont.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/AdwaitaMono.zip
|
curl -sSLo ~/.local/share/fonts/nerdfont.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/AdwaitaMono.zip
|
||||||
unzip -o ~/.local/share/fonts/nerdfont.zip -d ~/.local/share/fonts/
|
unzip -o ~/.local/share/fonts/nerdfont.zip -d ~/.local/share/fonts/
|
||||||
@@ -25,14 +25,14 @@ scripts:
|
|||||||
sh /tmp/starship.sh --yes --bin-dir=$(HOME)/.local/bin
|
sh /tmp/starship.sh --yes --bin-dir=$(HOME)/.local/bin
|
||||||
|
|
||||||
mkdir --parents ~/.config/bashrc.d
|
mkdir --parents ~/.config/bashrc.d
|
||||||
cp scripts.d/*.sh ~/.config/bashrc.d/
|
cp shell/scripts.d/*.sh ~/.config/bashrc.d/
|
||||||
|
|
||||||
mkdir --parents ~/.config/completions.d
|
mkdir --parents ~/.config/completions.d
|
||||||
cp completions.d/*.completion ~/.config/completions.d/
|
cp shell/completions.d/*.completion ~/.config/completions.d/
|
||||||
|
|
||||||
cp bashrc.sh ~/.bashrc
|
cp shell/bashrc.sh ~/.bashrc
|
||||||
cp inputrc ~/.inputrc
|
cp shell/inputrc ~/.inputrc
|
||||||
cp starship.toml ~/.config/starship.toml
|
cp shell/starship.toml ~/.config/starship.toml
|
||||||
sed -i "s/#XXXXXX/$(STARSHIP_COLOR)/g" ~/.config/starship.toml
|
sed -i "s/#XXXXXX/$(STARSHIP_COLOR)/g" ~/.config/starship.toml
|
||||||
|
|
||||||
.PHONY: vscodium
|
.PHONY: vscodium
|
||||||
@@ -47,5 +47,5 @@ vscodium:
|
|||||||
podman rm vscodium-setup-temp
|
podman rm vscodium-setup-temp
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: toolbox scripts;
|
install: toolbox shell;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user