add font and sudo config
This commit is contained in:
parent
76e89bf33c
commit
82f734ad0c
3 changed files with 28 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ header = ".dotter/handlebars_helpers/header.rhai"
|
||||||
[cli]
|
[cli]
|
||||||
depends = ["nvim", "zsh"]
|
depends = ["nvim", "zsh"]
|
||||||
|
|
||||||
|
[cli.variables]
|
||||||
|
nerd_font = "JetBrainsMono"
|
||||||
|
|
||||||
[cli.files]
|
[cli.files]
|
||||||
"config/bat" = "~/.config/bat"
|
"config/bat" = "~/.config/bat"
|
||||||
"config/sesh" = "~/.config/sesh"
|
"config/sesh" = "~/.config/sesh"
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,15 @@
|
||||||
|
|
||||||
{{ header "Running pre deploy script for distro" (to_title_case distro) }}
|
{{ header "Running pre deploy script for distro" (to_title_case distro) }}
|
||||||
|
|
||||||
|
{{ #if (and dotter.packages.cli (is_executable "sudo")) }}
|
||||||
|
{{ header "Configuring sudo" }}
|
||||||
|
|
||||||
|
echo "Defaults pwfeedback" | sudo -B tee /etc/sudoers.d/01-user
|
||||||
|
echo "Defaults timestamp_timeout=10" | sudo -B tee -a /etc/sudoers.d/01-user
|
||||||
|
echo "Defaults timestamp_type=global" | sudo -B tee -a /etc/sudoers.d/01-user
|
||||||
|
|
||||||
|
{{ /if }}
|
||||||
|
|
||||||
{{#if (eq distro "fedora") ~}}
|
{{#if (eq distro "fedora") ~}}
|
||||||
|
|
||||||
{{! extract the copr repositories variable }}
|
{{! extract the copr repositories variable }}
|
||||||
|
|
@ -40,4 +49,19 @@ cargo install --locked {{# each cargo.packages }} "{{ this }}" {{ /each }}
|
||||||
|
|
||||||
{{ /if }}
|
{{ /if }}
|
||||||
|
|
||||||
|
{{ #if dotter.packages.cli }}
|
||||||
|
|
||||||
|
{{ header "Configuring Nerd Fonts" }}
|
||||||
|
|
||||||
|
FONT_DIR="$HOME/.local/share/fonts"
|
||||||
|
mkdir -p "$FONT_DIR"
|
||||||
|
tmp_dir=$(mktemp -d)
|
||||||
|
|
||||||
|
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/{{ nerd_font }}.zip -o "$tmp_dir/{{ nerd_font}}.zip"
|
||||||
|
unzip -o "$tmp_dir/{{nerd_font}}.zip" -d ${FONT_DIR}/{{ nerd_font }}
|
||||||
|
|
||||||
|
rm -rf "$tmp_dir"
|
||||||
|
|
||||||
|
{{ /if }}
|
||||||
|
|
||||||
{{ header "Done :3" }}
|
{{ header "Done :3" }}
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ cd_origin = "top-center"
|
||||||
cd_offset = [ 0, 2, 50, 3 ]
|
cd_offset = [ 0, 2, 50, 3 ]
|
||||||
|
|
||||||
# create
|
# create
|
||||||
create_title = ["Create:", "Create (dir):"]
|
create_title = "Create:"
|
||||||
create_origin = "hovered"
|
create_origin = "hovered"
|
||||||
create_offset = [ 0, 1, 50, 3 ]
|
create_offset = [ 0, 1, 50, 3 ]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue