Skip to content

Commit

Permalink
Move byobu config to XDG_CONFIG_HOME/byobu
Browse files Browse the repository at this point in the history
Addresses #17
 - Moves `.tmux.conf` byobu config file to `.config/byobu` in this repo
 - Adjusts the symlink in Makefile

After this change, and if `BYOBU_CONFIG_DIR` uses `XDG_CONFIG_HOME`, it
is safe to re-link the config file and drop `~/.byobu` directory.
  • Loading branch information
matyama committed Apr 8, 2022
1 parent 58ef433 commit d838690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RIPGREP_CONFIG_HOME=$(XDG_CONFIG_HOME)/rg
endif

ifndef BYOBU_CONFIG_DIR
BYOBU_CONFIG_DIR=~/.byobu
BYOBU_CONFIG_DIR=$(XDG_CONFIG_HOME)/byobu
endif

ifndef SDKMAN_DIR
Expand Down Expand Up @@ -175,7 +175,7 @@ links: \
$(CFG_DIR)/.zlogout \
$(CFG_DIR)/.p10k.zsh
@{ \
for cfg in $$(find $(CFG_DIR)/.byobu $(CFG_DIR)/.config $(CFG_DIR)/.stack $(CFG_DIR)/.oh-my-zsh/custom -type f -not -name '*.dconf'); do \
for cfg in $$(find $(CFG_DIR)/.config $(CFG_DIR)/.stack $(CFG_DIR)/.oh-my-zsh/custom -type f -not -name '*.dconf'); do \
ln -svf $$cfg "$(HOME)$${cfg#$(CFG_DIR)}";\
done;\
}
Expand Down

0 comments on commit d838690

Please sign in to comment.