Skip to content

Commit

Permalink
Move complete tmux config to ~/.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackjacx committed Nov 21, 2023
1 parent 7d072f7 commit bea2ce3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 11 additions & 1 deletion bootstrap/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,21 @@ linkConfigurationFiles() {
# Finds hidden dotfiles and uses safe syntax to execute loop
find "$SCRIPT_DIR/bootstrap/dotfiles" -type f -iname ".*" -print0 | while read -r -d $'\0' file
do
link_dir="${HOME}"
link_dir="${HOME}/"
log "Link dotfile $file --> $link_dir"
ln -sf "$file" "$link_dir/"
done

# Finds dotfiles that should be linked into ~/.config/<tool>/
find "$SCRIPT_DIR/bootstrap/config_files" -type f -print0 | while read -r -d $'\0' file
do
link_dir="${HOME}/.config/"
tool_name=$(basename "$file" | cut -d'.' -f1)
mkdir "$link_dir" > /dev/null 2>&1;
log "Link config file $file --> $link_dir/$tool_name"
ln -sf "$file" "$link_dir/$tool_name"
done

find "$SCRIPT_DIR/bootstrap/zsh_config_files" -type f -iname "*" -print0 | while read -r -d $'\0' file
do
link_dir="${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
# Persists tmux environment across system restarts.
set -g @plugin 'tmux-plugins/tmux-resurrect'

# Update plugins install path
set-environment -g TMUX_PLUGIN_MANAGER_PATH "${HOME}/.config/tmux/plugins"

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run "${HOME}/.tmux/plugins/tpm/tpm"
run "${HOME}/.config/tmux/plugins/tpm/tpm"

0 comments on commit bea2ce3

Please sign in to comment.