Use $OMAKUB_PATH where possible

This commit is contained in:
David Heinemeier Hansson 2024-06-03 12:30:34 -07:00
parent bb686da04d
commit dfcfade274
8 changed files with 13 additions and 11 deletions

View File

@ -10,3 +10,5 @@ source /usr/share/bash-completion/bash_completion
# Set complete path # Set complete path
export PATH="./bin:$HOME/.local/bin:$HOME/.local/share/omakub/bin:$HOME/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" export PATH="./bin:$HOME/.local/bin:$HOME/.local/share/omakub/bin:$HOME/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
set +h set +h
export OMAKUB_PATH="/home/$USER/.local/share/omakub"

View File

@ -1,7 +1,7 @@
if ! command -v alacritty &>/dev/null; then if ! command -v alacritty &>/dev/null; then
sudo apt install -y alacritty sudo apt install -y alacritty
mkdir -p ~/.config/alacritty mkdir -p ~/.config/alacritty
cp ~/.local/share/omakub/configs/alacritty.toml ~/.config/alacritty/alacritty.toml cp $OMAKUB_PATH/configs/alacritty.toml ~/.config/alacritty/alacritty.toml
cp ~/.local/share/omakub/configs/alacritty/theme.toml ~/.config/alacritty/theme.toml cp $OMAKUB_PATH/configs/alacritty/theme.toml ~/.config/alacritty/theme.toml
cp ~/.local/share/omakub/configs/alacritty/font.toml ~/.config/alacritty/font.toml cp $OMAKUB_PATH/configs/alacritty/font.toml ~/.config/alacritty/font.toml
fi fi

View File

@ -1,5 +1,5 @@
if [ ! -f "~/.XCompose" ]; then if [ ! -f "~/.XCompose" ]; then
cp ~/.local/share/omakub/configs/xcompose ~/.XCompose cp $OMAKUB_PATH/configs/xcompose ~/.XCompose
ibus restart ibus restart
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']" gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']"
fi fi

View File

@ -3,5 +3,5 @@ if ! command -v neovim &>/dev/null; then
sudo apt update -y sudo apt update -y
sudo apt install -y neovim sudo apt install -y neovim
git clone https://github.com/LazyVim/starter ~/.config/nvim git clone https://github.com/LazyVim/starter ~/.config/nvim
cp ~/.local/share/omakub/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua cp $OMAKUB_PATH/themes/neovim/tokyo-night.lua ~/.config/nvim/lua/plugins/theme.lua
fi fi

View File

@ -1,2 +1,2 @@
# Setup default theme # Setup default theme
source ~/.local/share/omakub/themes/gnome/yaru.sh source $OMAKUB_PATH/themes/gnome/tokyo-night.sh

View File

@ -6,8 +6,8 @@ if ! command -v ulauncher &>/dev/null; then
# Start ulauncher to have it populate config before we overwrite # Start ulauncher to have it populate config before we overwrite
mkdir -p ~/.config/autostart/ mkdir -p ~/.config/autostart/
cp ~/.local/share/omakub/configs/ulauncher.desktop ~/.config/autostart/ulauncher.desktop cp $OMAKUB_PATH/configs/ulauncher.desktop ~/.config/autostart/ulauncher.desktop
gtk-launch ulauncher.desktop gtk-launch ulauncher.desktop
sleep 2 # ensure enough time for ulauncher to set defaults sleep 2 # ensure enough time for ulauncher to set defaults
cp ~/.local/share/omakub/configs/ulauncher.json ~/.config/ulauncher/settings.json cp $OMAKUB_PATH/configs/ulauncher.json ~/.config/ulauncher/settings.json
fi fi

View File

@ -1,6 +1,6 @@
if ! command -v code &>/dev/null; then if ! command -v code &>/dev/null; then
sudo snap install code --classic sudo snap install code --classic
mkdir -p ~/.config/Code/User mkdir -p ~/.config/Code/User
cp ~/.local/share/omakub/configs/vscode.json ~/.config/Code/User/settings.json cp $OMAKUB_PATH/configs/vscode.json ~/.config/Code/User/settings.json
code --install-extension enkia.tokyo-night code --install-extension enkia.tokyo-night
fi fi

View File

@ -1,6 +1,6 @@
if ! command -v zellij &>/dev/null; then if ! command -v zellij &>/dev/null; then
sudo snap install zellij --classic sudo snap install zellij --classic
mkdir -p ~/.config/zellij/ mkdir -p ~/.config/zellij/
cp ~/.local/share/omakub/configs/zellij.kdl ~/.config/zellij/config.kdl cp $OMAKUB_PATH/configs/zellij.kdl ~/.config/zellij/config.kdl
ln -s ~/.local/share/omakub/themes/zellij ~/.config/zellij/themes ln -s $OMAKUB_PATH/themes/zellij ~/.config/zellij/themes
fi fi