diff options
| -rw-r--r-- | .config/alacritty/alacritty.linux.yml | 14 | ||||
| -rw-r--r-- | .config/alacritty/alacritty.macos.yml | 14 | ||||
| -rw-r--r-- | .config/alacritty/alacritty.yml | 4 | ||||
| -rw-r--r-- | .gitignore | 3 | ||||
| -rwxr-xr-x | setup.sh | 7 |
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 @@ -1,2 +1,3 @@ +/.config/alacritty/alacritty.local.yml /.config/emacs -nvim-startup.log +/nvim-startup.log @@ -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" |
