fix: change variable that hold dotfiles directory
This commit is contained in:
+3
-2
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
${DOTFILE_DIR}/sync-config config/btop
|
${DOTFILES_DIR}/sync-config config/btop
|
||||||
|
THEMES_DIR="${HOME}/.local/share/themes"
|
||||||
|
|
||||||
# theme link
|
# theme link
|
||||||
mkdir -p ~/.config/btop/themes
|
mkdir -p ~/.config/btop/themes
|
||||||
ln -snf ${DOTFILE_DIR}/themes/current/btop.theme ${HOME}/.config/btop/themes/current.theme
|
ln -snf ${THEMES_DIR}/current/btop.theme ${HOME}/.config/btop/themes/current.theme
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
${DOTFILE_DIR}/sync-config config/emacs
|
${DOTFILES_DIR}/sync-config config/emacs
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -1,11 +1,10 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
if [[ ! -x "$(command -v sjb-orgmode-installer)" ]]; then
|
if [[ ! -x "$(command -v fish)" ]]; then
|
||||||
echo "Error: sjb config script are not installed, run sjb-install.sh" >&2
|
paru -Sy --needed --noconfirm fish fisher
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${DOTFILE_DIR}/sync-config config/fish
|
${DOTFILES_DIR}/sync-config config/fish
|
||||||
|
|
||||||
if [[ -x /usr/bin/fisher ]]; then
|
if [[ -x /usr/bin/fisher ]]; then
|
||||||
fisher install franciscolourenco/done
|
fisher install franciscolourenco/done
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
${DOTFILES_DIR}/sync-config config/fonts
|
${DOTFILES_DIR}/sync-config config/fontconfig
|
||||||
|
|
||||||
rsync -av ${DOTFILES_DIR}/fonts/ ${HOME}/.local/share/fonts/
|
rsync -av ${DOTFILES_DIR}/fonts/ ${HOME}/.local/share/fonts/
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ if [[ ! -x "$(command -v git)" ]]; then
|
|||||||
paru -Sy --needed --noconfirm git
|
paru -Sy --needed --noconfirm git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${DOTFILE_DIR}/sync-config config/git
|
${DOTFILES_DIR}/sync-config config/git
|
||||||
|
|
||||||
GIT_CONFIG="${HOME}/.config/git/local"
|
GIT_CONFIG="${HOME}/.config/git/local"
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -4,12 +4,12 @@ if [[ ! -x "$(command -v jj)" ]]; then
|
|||||||
paru -Sy --needed --noconfirm jj
|
paru -Sy --needed --noconfirm jj
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${DOTFILE_DIR}/sync-config config/jj
|
${DOTFILES_DIR}/sync-config config/jj
|
||||||
|
|
||||||
JJ_CONFIG="${HOME}/.config/jj/conf.d/local.toml"
|
JJ_CONFIG="${HOME}/.config/jj/conf.d/local.toml"
|
||||||
|
|
||||||
mkdir -p "$(dirname ${JJ_CONFIG})"
|
mkdir -p "$(dirname ${JJ_CONFIG})"
|
||||||
cp ${DOTFILE_DIR}/installer/templates/local.toml.tmpl ${JJ_CONFIG}
|
cp ${DOTFILES_DIR}/installer/templates/local.toml.tmpl ${JJ_CONFIG}
|
||||||
|
|
||||||
if [[ -n "${SJB_USER_NAME//[[:space:]]/}" ]]; then
|
if [[ -n "${SJB_USER_NAME//[[:space:]]/}" ]]; then
|
||||||
sed -i "s/NAME_PLACEHOLDER/${SJB_USER_NAME}/g" ${JJ_CONFIG}
|
sed -i "s/NAME_PLACEHOLDER/${SJB_USER_NAME}/g" ${JJ_CONFIG}
|
||||||
|
|||||||
+3
-2
@@ -4,13 +4,14 @@ if [[ ! -x "$(command -v nvim)" ]]; then
|
|||||||
paru -Sy --noconfirm neovim harper tree-sitter-cli
|
paru -Sy --noconfirm neovim harper tree-sitter-cli
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${DOTFILE_DIR}/sync-config config/nvim
|
${DOTFILES_DIR}/sync-config config/nvim
|
||||||
|
|
||||||
# Set specific app links for current theme
|
# Set specific app links for current theme
|
||||||
PLUGINS_DIR="${HOME}/.config/nvim/lua/plugins"
|
PLUGINS_DIR="${HOME}/.config/nvim/lua/plugins"
|
||||||
|
THEMES_DIR="${HOME}/.local/share/themes"
|
||||||
|
|
||||||
mkdir -p ${PLUGINS_DIR}
|
mkdir -p ${PLUGINS_DIR}
|
||||||
ln -snf ${DOTFILE_DIR}/current/theme/neovim.lua ${PLUGINS_DIR}/theme.lua
|
ln -snf ${THEMES_DIR}/current/theme/neovim.lua ${PLUGINS_DIR}/theme.lua
|
||||||
|
|
||||||
uv tool install vectorcode
|
uv tool install vectorcode
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -5,8 +5,9 @@ if [[ ! -x "$(command -v tmux)" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
${DOTFILES_DIR}/sync-config config/tmux
|
${DOTFILES_DIR}/sync-config config/tmux
|
||||||
|
THEMES_DIR="${HOME}/.local/share/themes"
|
||||||
|
|
||||||
ln -snf ${DOTFILES_DIR}/themes/current/tmux ${HOME}/.config/tmux/theme
|
ln -snf ${THEMES_DIR}/current/theme/tmux ${HOME}/.config/tmux/theme
|
||||||
|
|
||||||
# setup tmux
|
# setup tmux
|
||||||
if [[ ! -d ~/.config/tmux/plugins/tpm ]]; then
|
if [[ ! -d ~/.config/tmux/plugins/tpm ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user