tmux: config Catppuccin Mocha + catppuccin/tmux v2.3.1, TPM, README & installer
This commit is contained in:
commit
a96e7b8e40
6 files changed
+471
No files matched your search
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env sh
|
||||
# Pasang config tmux (+ plugin) ke ~/.config/tmux
|
||||
set -eu
|
||||
|
||||
DEST="${XDG_CONFIG_HOME:-$HOME/.config}/tmux"
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
command -v tmux >/dev/null 2>&1 || { echo "tmux belum terpasang"; exit 1; }
|
||||
command -v git >/dev/null 2>&1 || { echo "git belum terpasang"; exit 1; }
|
||||
|
||||
mkdir -p "$DEST"
|
||||
cp -f "$HERE/.config/tmux/tmux.conf" "$DEST/tmux.conf"
|
||||
cp -f "$HERE/.config/tmux/palette.conf" "$DEST/palette.conf"
|
||||
cp -f "$HERE/.config/tmux/apply-palette.sh" "$DEST/apply-palette.sh"
|
||||
chmod 0755 "$DEST/apply-palette.sh"
|
||||
|
||||
PLUG="$DEST/plugins"
|
||||
mkdir -p "$PLUG/catppuccin"
|
||||
|
||||
[ -d "$PLUG/tpm" ] || git clone --depth 1 https://github.com/tmux-plugins/tpm "$PLUG/tpm"
|
||||
|
||||
# catppuccin/tmux dipasang manual (rekomendasi resmi repo-nya)
|
||||
[ -d "$PLUG/catppuccin/tmux" ] || \
|
||||
git clone --depth 1 -b v2.3.1 https://github.com/catppuccin/tmux.git "$PLUG/catppuccin/tmux"
|
||||
|
||||
echo "Config terpasang di $DEST"
|
||||
echo "Buka tmux, lalu tekan prefix + I untuk memasang plugin TPM lainnya."
|
||||
Reference in new issue
Block a user