commit 111c78b6e7625865da76b4d9b0d4e14e79a55bd2
parent cb77c767c4fe33b6f3781189025921b39ac5eb97
Author: mokou <mokou@fastmail.com>
Date: Thu, 8 Apr 2021 13:56:09 +0200
Spring clean!
Diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/dot_config/alacritty/alacritty.yml b/dot_config/alacritty/alacritty.yml
@@ -105,7 +105,7 @@ font:
#style: Bold
# Point size
- #size: 13.0
+ size: 14.0
# Offset is the extra space around each character. `offset.y` can be thought of
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
diff --git a/private_dot_elvish/rc.elv b/private_dot_elvish/rc.elv
@@ -1,5 +1,6 @@
use path
use str
+use platform
use github.com/zzamboni/elvish-modules/iterm2
use github.com/xiaq/edit.elv/smart-matcher
use github.com/zzamboni/elvish-modules/alias
@@ -44,6 +45,11 @@ set-env PYTHONPATH (str:join ':' ["/Users/lu/.local/pipx/venvs/pdm/lib/python3.9
set-env TZ_LIST "Europe/Berlin;Berlin,America/New_York;US East,America/Los_Angeles;US West,Europe/London;London"
set-env MANPAGER "sh -c 'col -bx | bat -l man -p'"
+# If Systemd is not installed and we're on Linux, set XDG_RUNTIME_DIR
+if (and (eq (has-external systemctl) $false) $platform:is-unix) {
+ set-env XDG_RUNTIME_DIR /run/user/(id -u)
+}
+
# Aliases
alias:new editconfig chezmoi edit ~/.elvish/rc.elv
alias:new reload eval (cat ~/.elvish/rc.elv | slurp)
@@ -54,18 +60,24 @@ alias:new cwr cargo watch -x run
alias:new mkt cd (mktemp -d)
alias:new czm chezmoi
# Git aliases
+alias:new g git
+alias:new gaa git add --all
alias:new gs git status
alias:new gl git log --color --graph --abbrev-commit --oneline
alias:new gpl git pull
alias:new gps git push
alias:new gc git commit
# Mercurial aliases
+alias:new h hg
alias:new ha hg addremove
alias:new hc hg commit
alias:new hps hg push
alias:new hpl hg pull
alias:new hs hg status
alias:new hl hg log
+# XBPS aliases
+alias:new xi sudo xbps-install
+alias:new xq xbps-query
# Aliases that overwrite other, existing commands
alias:new ls exa