Initial commit: Add dotfiles and custom zsh theme

This commit is contained in:
Aaron D. Lee
2025-12-13 23:18:59 -05:00
commit bcdc53a6e6
14 changed files with 1883 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
# espanso configuration file
# yaml-language-server: $schema=https://raw.githubusercontent.com/espanso/espanso/dev/schemas/config.schema.json
# For a complete introduction, visit the official docs at: https://espanso.org/docs/
# You can use this file to define the global configuration options for espanso.
# These are the parameters that will be used by default on every application,
# but you can also override them on a per-application basis.
# To make customization easier, this file contains some of the commonly used
# parameters. Feel free to uncomment and tune them to fit your needs!
# --- Toggle key
# Customize the key used to disable and enable espanso (when double tapped)
# Available options: CTRL, SHIFT, ALT, CMD, OFF
# You can also specify the key variant, such as LEFT_CTRL, RIGHT_SHIFT, etc...
# toggle_key: ALT
# You can also disable the toggle key completely with
# toggle_key: OFF
# --- Injection Backend
# Espanso supports multiple ways of injecting text into applications. Each of
# them has its quirks, therefore you may want to change it if you are having problems.
# By default, espanso uses the "Auto" backend which should work well in most cases,
# but you may want to try the "Clipboard" or "Inject" backend in case of issues.
# backend: Clipboard
# --- Auto-restart
# Enable/disable the config auto-reload after a file change is detected.
# auto_restart: false
# --- Clipboard threshold
# Because injecting long texts char-by-char is a slow operation, espanso automatically
# uses the clipboard if the text is longer than 'clipboard_threshold' characters.
# clipboard_threshold: 100
# --- Regex Buffer Size
# The maximum number of characters to hold in memory for regex triggers.
# This value determines the maximum length of a regex trigger that can be
# matched by espanso and by default have 30 chars.
# It's advisable to keep this value reasonably low.
# You might want to increase this value if you have very long triggers,
# at the cost of higher memory usage.
# max_regex_buffer_size: 30
# For a list of all the available options, visit the official docs at: https://espanso.org/docs/

518
espanso/match/base.yml Normal file
View File

@@ -0,0 +1,518 @@
# ============================================================================
# Aaron D. Lee's Espanso matches
# 2025-12-13
# ============================================================================
# yaml-language-server: $schema=https://raw.githubusercontent.com/espanso/espanso/dev/schemas/match.schema.json
matches:
# =========================================
# Date and Time Stamps
# =========================================
# Print date stamp (YYYY-MM-DD)
- trigger: "..ds"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: date
params:
format: "%Y-%m-%d"
- trigger: "..date"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: date
params:
format: "%Y-%m-%d"
# Print short/filename date stamp (YYYYMMDD)
- trigger: "..sds"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: date
params:
format: "%Y%m%d"
# Print UTC date/time stamp (ISO 8601)
- trigger: "..ts"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date -u +"%Y-%m-%dT%H:%M:%S.%3NZ"'
# Print current time w/ timezone
- trigger: "..ztime"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date +"%H:%M:%S.%3N %Z"'
# Print UTC time w/ timezone
- trigger: "..uztime"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date -u +"%H:%M:%S.%3N %Z"'
# Print current time
- trigger: "..time"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date +"%H:%M:%S"'
# Print UTC time
- trigger: "..utime"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date -u +"%H:%M:%S"'
# Print UTC date/time
- trigger: "..utc"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date -u +"%Y-%m-%d %H:%M:%S.%3N %Z"'
# Print date/time stamp
- trigger: "..dt"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date +"%Y-%m-%d %H:%M:%S %Z"'
# Print UTC date/time stamp
- trigger: "..udt"
replace: "{{date_stamp}}"
vars:
- name: date_stamp
type: shell
params:
cmd: 'date -u +"%Y-%m-%d %H:%M:%S %Z"'
# Print month name
- trigger: "..month"
replace: "{{month}}"
vars:
- name: month
type: date
params:
format: "%B"
# Print year
- trigger: "..year"
replace: "{{year}}"
vars:
- name: year
type: date
params:
format: "%Y"
# Print week number
- trigger: "..week"
replace: "{{week}}"
vars:
- name: week
type: date
params:
format: "Week %U"
# Print day of week
- trigger: "..day"
replace: "{{day}}"
vars:
- name: day
type: date
params:
format: "%A"
# =========================================
# Unix Timestamps
# =========================================
# Unix epoch timestamp
- trigger: "..epoch"
replace: "{{epoch}}"
vars:
- name: epoch
type: shell
params:
cmd: 'date +%s'
# Unix epoch timestamp in milliseconds
- trigger: "..epochms"
replace: "{{epochms}}"
vars:
- name: epochms
type: shell
params:
cmd: 'date +%s%3N'
# =========================================
# Quick Text Replacements
# =========================================
- trigger: "..shrug"
replace: "¯\\_(ツ)_/¯"
- trigger: "..flip"
replace: "(╯°□°)╯︵ ┻━┻"
- trigger: "..unflip"
replace: "┬─┬ ( ゜-゜ノ)"
- trigger: "..lenny"
replace: "( ͡° ͜ʖ ͡°)"
- trigger: "..check"
replace: "✓"
- trigger: "..cross"
replace: "✗"
- trigger: "..arrow"
replace: "→"
- trigger: "..larrow"
replace: "←"
# =========================================
# System Information
# =========================================
# Public IP address
- trigger: "..ip"
replace: "{{ip}}"
vars:
- name: ip
type: shell
params:
cmd: 'curl -s ifconfig.me'
# Local IP address
- trigger: "..locip"
replace: "{{localip}}"
vars:
- name: localip
type: shell
params:
cmd: 'hostname -I | awk "{print $1}"'
# =========================================
# Git Shortcuts
# =========================================
- trigger: "..gstat"
replace: "git status"
- trigger: "..gco"
replace: "git checkout "
- trigger: "..gcm"
replace: "git commit -m \"\""
- trigger: "..glog"
replace: "git log --oneline --graph --decorate --all"
- trigger: "..gpush"
replace: "git push origin "
- trigger: "..gpull"
replace: "git pull origin "
- trigger: "..gbranch"
replace: "git branch -a"
- trigger: "..gdiff"
replace: "git diff"
- trigger: "..gadd"
replace: "git add ."
# Current git branch
- trigger: "..branch"
replace: "{{branch}}"
vars:
- name: branch
type: shell
params:
cmd: 'git branch --show-current 2>/dev/null || echo "not a git repo"'
# =========================================
# Docker Shortcuts
# =========================================
- trigger: "..dps"
replace: "docker ps"
- trigger: "..dpsa"
replace: "docker ps -a"
- trigger: "..dcup"
replace: "docker-compose up -d"
- trigger: "..dcdown"
replace: "docker-compose down"
- trigger: "..dlog"
replace: "docker logs -f "
- trigger: "..dexec"
replace: "docker exec -it "
- trigger: "..dim"
replace: "docker images"
- trigger: "..dprune"
replace: "docker system prune -af"
# =========================================
# Code Templates
# =========================================
- trigger: "..bash"
replace: |
#!/usr/bin/env bash
set -euo pipefail
- trigger: "..python"
replace: |
#!/usr/bin/env python3
def main():
pass
if __name__ == "__main__":
main()
- trigger: "..she!"
replace: "#!/usr/bin/env bash"
# =========================================
# Markdown Helpers
# =========================================
- trigger: "..mdcode"
replace: |
```
{{cursor}}
```
- trigger: "..mdbash"
replace: |
```bash
{{cursor}}
```
- trigger: "..mdpy"
replace: |
```python
{{cursor}}
```
- trigger: "..mdjs"
replace: |
```javascript
{{cursor}}
```
- trigger: "..mdtable"
replace: |
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
- trigger: "..mdlink"
replace: "[{{text}}]({{url}})"
vars:
- name: text
type: form
params:
layout: "Link text: {{text}}"
- name: url
type: form
params:
layout: "URL: {{url}}"
- trigger: "..mdimg"
replace: "![{{alt}}]({{url}})"
vars:
- name: alt
type: form
params:
layout: "Alt text: {{alt}}"
- name: url
type: form
params:
layout: "Image URL: {{url}}"
# =========================================
# Common Typo Corrections
# =========================================
- trigger: "teh"
replace: "the"
- trigger: "recieve"
replace: "receive"
- trigger: "seperator"
replace: "separator"
- trigger: "definately"
replace: "definitely"
- trigger: "occured"
replace: "occurred"
- trigger: "lenght"
replace: "length"
- trigger: "wierd"
replace: "weird"
- trigger: "thier"
replace: "their"
# =========================================
# Lorem Ipsum
# =========================================
- trigger: "..lorem"
replace: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- trigger: "..loremlong"
replace: |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
# =========================================
# Quick Responses
# =========================================
- trigger: "..brb"
replace: "Be right back"
- trigger: "..omw"
replace: "On my way"
- trigger: "..tyvm"
replace: "Thank you very much"
- trigger: "..lgtm"
replace: "Looks good to me"
- trigger: "..wfm"
replace: "Works for me"
- trigger: "..ack"
replace: "Acknowledged"
- trigger: "..asap"
replace: "As soon as possible"
# =========================================
# File Paths & Navigation
# =========================================
- trigger: "..~"
replace: |
cd ~
- trigger: "..tmp"
replace: |
cd /tmp/
- trigger: "..logs"
replace: |
cd /var/log/
# =========================================
# URLs & Links
# =========================================
- trigger: "..gh"
replace: "https://github.com"
- trigger: "..gl"
replace: "https://gitlab.com"
- trigger: "..gist"
replace: "https://gist.github.com"
- trigger: "..so"
replace: "https://stackoverflow.com"
- trigger: "..reddit"
replace: "https://reddit.com"
# =========================================
# Programming Comments
# =========================================
- trigger: "..todo"
replace: "// TODO: "
- trigger: "..fixme"
replace: "// FIXME: "
- trigger: "..note"
replace: "// NOTE: "
- trigger: "..hack"
replace: "// HACK: "
- trigger: "..debug"
replace: "// DEBUG: "
# =========================================
# Common Command Patterns
# =========================================
- trigger: "..ll"
replace: "ls -lah"
- trigger: "..la"
replace: "ls -A"
- trigger: "..grep"
replace: "grep -rni \"\" ."
- trigger: "..find"
replace: "find . -name \"\""
- trigger: "..port"
replace: "lsof -i :"
- trigger: "..kill"
replace: "kill -9 "
- trigger: "..proc"
replace: "ps aux | grep "
- trigger: "..disk"
replace: "df -h"
- trigger: "..mem"
replace: "free -h"

View File

@@ -0,0 +1,31 @@
A simple package to bring basic emojis to espanso.
It works by replacing keywords like `:lol` with `😂`. More details below.
### Installation
Install the package with:
```
espanso install basic-emojis
```
### Usage
This package replaces the following keywords with the associated emoji while you're
typing:
Keyword | Emoji
--- | ---
`:lol` | 😂
`:llol` | 😂😂😂😂
`:sad` | ☹
`:ssad` | ☹☹☹☹
`:sml` | 😊
`:strong` | 💪
`:stlol` | 💪😂
`:ba` | 😎
`:ok` | 👍
`:ook` | 👍👍👍👍
`:happy` | 😄
`:cry` | 😭
`:wow` | 😮

View File

@@ -0,0 +1,6 @@
author: Federico Terzi
description: A package to include some basic emojis in espanso.
name: basic-emojis
title: Basic Emojis
version: 0.1.0
tags: ["emoji", "chat"]

View File

@@ -0,0 +1,2 @@
---
hub

View File

@@ -0,0 +1,27 @@
matches:
- trigger: ":lol"
replace: "😂"
- trigger: ":llol"
replace: "😂😂😂😂"
- trigger: ":sad"
replace: "☹"
- trigger: ":ssad"
replace: "☹☹☹☹"
- trigger: ":sml"
replace: "😊"
- trigger: ":strong"
replace: "💪"
- trigger: ":stlol"
replace: "💪😂"
- trigger: ":ba"
replace: "😎"
- trigger: ":ok"
replace: "👍"
- trigger: ":ook"
replace: "👍👍👍👍"
- trigger: ":happy"
replace: "😄"
- trigger: ":cry"
replace: "😭"
- trigger: ":wow"
replace: "😮"