mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: init scripts
This commit is contained in:
parent
c1a63e4658
commit
eb31d815ce
6 changed files with 38 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -48,3 +48,7 @@ common/**/*current*
|
|||
default.target.wants
|
||||
|
||||
nvim-healthcheck.txt
|
||||
|
||||
private_pid
|
||||
private_security
|
||||
private_fish_variables
|
||||
|
|
|
|||
4
home/scripts/run_once_bash.sh
Normal file
4
home/scripts/run_once_bash.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
# shellcheck shell=sh
|
||||
|
||||
sudo cp $CHEZMOI_SOURCE_DIR/dot_config/bash/xdg-compat.sh /etc/profile.d/xdg-compat.sh
|
||||
8
home/scripts/run_once_bat.sh
Normal file
8
home/scripts/run_once_bat.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
mkdir -p "$(bat --config-dir)/themes"
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
|
||||
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
|
||||
6
home/scripts/run_once_nvim.sh
Normal file
6
home/scripts/run_once_nvim.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
# shellcheck shell=sh
|
||||
|
||||
if command -v nvim > /dev/null 2>&1; then
|
||||
nvim --headless +checkhealth +"w nvim-healthcheck.txt" +qall
|
||||
fi
|
||||
7
home/scripts/run_once_rtorrent.sh
Normal file
7
home/scripts/run_once_rtorrent.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
mkdir -p {{XDG_DATA_HOME}}/rtorrent/session
|
||||
mkdir -p {{XDG_DATA_HOME}}/rtorrent/watch
|
||||
|
||||
9
home/scripts/run_once_vim.sh
Normal file
9
home/scripts/run_once_vim.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||
|
||||
|
||||
mkdir -p $XDG_DATA_HOME/vim/after
|
||||
mkdir -p $XDG_STATE_HOME/vim/{backup,swap,undo,view}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue