aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.config/alacritty/alacritty.linux.yml14
-rw-r--r--.config/alacritty/alacritty.macos.yml14
-rw-r--r--.config/alacritty/alacritty.yml4
-rw-r--r--.gitignore3
-rwxr-xr-xsetup.sh7
5 files changed, 39 insertions, 3 deletions
diff --git a/.config/alacritty/alacritty.linux.yml b/.config/alacritty/alacritty.linux.yml
new file mode 100644
index 0000000..cf70584
--- /dev/null
+++ b/.config/alacritty/alacritty.linux.yml
@@ -0,0 +1,14 @@
+hints:
+ alphabet: "asdfghjkl;"
+ enabled:
+ # The last 5 characters that are excluded from URL letters are my 'listchars' settings in Vim/Neovim.
+ - regex: "(https:|http:|file:)\
+ [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`\u00AC\u25B8\u00B7\u00BB\u00AB]+"
+ command: xdg-open
+ post_processing: true
+ mouse:
+ enabled: true
+ mods: None
+ binding:
+ key: U
+ mods: Control|Shift
diff --git a/.config/alacritty/alacritty.macos.yml b/.config/alacritty/alacritty.macos.yml
new file mode 100644
index 0000000..ad6b80f
--- /dev/null
+++ b/.config/alacritty/alacritty.macos.yml
@@ -0,0 +1,14 @@
+hints:
+ alphabet: "asdfghjkl;"
+ enabled:
+ # The last 5 characters that are excluded from URL letters are my 'listchars' settings in Vim/Neovim.
+ - regex: "(https:|http:|file:)\
+ [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`\u00AC\u25B8\u00B7\u00BB\u00AB]+"
+ command: open
+ post_processing: true
+ mouse:
+ enabled: true
+ mods: None
+ binding:
+ key: U
+ mods: Command
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index 7c77207..f164e0f 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -8,8 +8,8 @@
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
-#import:
-# - /path/to/alacritty.yml
+import:
+ - ~/.config/alacritty/alacritty.local.yml
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
diff --git a/.gitignore b/.gitignore
index 0605e1e..1bc0010 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
+/.config/alacritty/alacritty.local.yml
/.config/emacs
-nvim-startup.log
+/nvim-startup.log
diff --git a/setup.sh b/setup.sh
index 9653323..728466f 100755
--- a/setup.sh
+++ b/setup.sh
@@ -31,6 +31,13 @@ do
fi
done
+echo "symlink: ~/.config/alacritty/alacritty.local.yml"
+if [[ "$(uname)" == "Darwin" ]]; then
+ ln -s -f ~/.config/alacritty/alacritty.macos.yml ~/.config/alacritty/alacritty.local.yml
+else
+ ln -s -f ~/.config/alacritty/alacritty.linux.yml ~/.config/alacritty/alacritty.local.yml
+fi
+
paq_dir="${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim
if [ ! -d "$paq_dir" ]; then
echo "clone: $paq_dir"