feat: re-organise files dir
This commit is contained in:
4
.github/workflows/vim-preview.yml
vendored
4
.github/workflows/vim-preview.yml
vendored
@@ -3,7 +3,7 @@ name: Vim Theme Preview
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'files/home/.vimrc'
|
||||
- 'home/.vimrc'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
const fs = require('fs');
|
||||
|
||||
// === GENERATE HTML PREVIEW ===
|
||||
const vimrc = fs.readFileSync('files/home/.vimrc', 'utf8');
|
||||
const vimrc = fs.readFileSync('home/.vimrc', 'utf8');
|
||||
|
||||
// Parse highlight definitions
|
||||
const highlights = {};
|
||||
|
||||
@@ -38,9 +38,7 @@ rm -f "$HOME/.ssh/config"
|
||||
mkdir -p "$HOME/.config"
|
||||
mkdir -p "$HOME/.ssh"
|
||||
|
||||
stow --dir="$root_dir/files" --target="$HOME" home
|
||||
stow --dir="$root_dir/files" --target="$HOME/.config" dot-config
|
||||
stow --dir="$root_dir/files" --target="$HOME/.ssh" dot-ssh
|
||||
stow --dir="$root_dir" --target="$HOME" home
|
||||
|
||||
# Bust PATH cache to force regeneration with new profile
|
||||
rm -f "${XDG_CACHE_HOME:-$HOME/.cache}/dots/path"
|
||||
|
||||
Reference in New Issue
Block a user