Adjust install, file-copy, and theme logic after first run on arch linux
This commit is contained in:
@@ -29,7 +29,7 @@ return {
|
||||
ensure_installed = {
|
||||
"clangd",
|
||||
"lua_ls",
|
||||
"ruby_lsp",
|
||||
-- "ruby_lsp",
|
||||
-- "gopls",
|
||||
-- "tailwindcss",
|
||||
},
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = 'master',
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
|
||||
@@ -27,6 +27,7 @@ export XDG_DATA_DIRS="/usr/local/share:/usr/share"
|
||||
|
||||
# directory for theme/style stuff
|
||||
export DIR_THEME_SETTINGS="$XDG_CONFIG_HOME/zz-this-box/themes"
|
||||
export DEFAULT_THEME_NAME="tokyodark"
|
||||
|
||||
# zsh
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # may already be set, set anyway
|
||||
|
||||
@@ -50,7 +50,7 @@ theme_update_browser() {
|
||||
# actually applied, leaving here as is for now; TODO: fix or just remove
|
||||
defaults write com.brave.browser $policy -string "$color_hex"
|
||||
}
|
||||
brave --refresh-platform-policy --no-startup-window
|
||||
brave --refresh-platform-policy --no-startup-window > /dev/null
|
||||
}
|
||||
|
||||
[[ ! -z $1 ]] && raw_target="$1" ||
|
||||
@@ -62,7 +62,7 @@ theme_update_browser() {
|
||||
target_theme="$DIR_THEME_SETTINGS/$(echo $raw_target | tr ' ' '-' | tr '[:upper:]' '[:lower:]')"
|
||||
[[ ! -d "$target_theme" ]] && echo "theme not found: $target_theme" && exit 1
|
||||
|
||||
ln -sF "$target_theme" $DIR_THEME_SETTINGS/.current-theme
|
||||
ln -snf "$target_theme" $DIR_THEME_SETTINGS/.current-theme
|
||||
|
||||
theme_update_terminal
|
||||
theme_update_tmux
|
||||
|
||||
Reference in New Issue
Block a user