From aa60f63a4c00a5d3dc9461c5cb9dcf0b57fecd79 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Thu, 18 Dec 2025 08:59:19 -0800 Subject: [PATCH] Add more aliases --- .zsh/aliases | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.zsh/aliases b/.zsh/aliases index 2b43bd9..e77e176 100644 --- a/.zsh/aliases +++ b/.zsh/aliases @@ -228,11 +228,20 @@ alias vd=${VIM}diff alias vir=vr alias vis=vs alias gvim="gvim -font 'APL385 Unicode 8' -c 'set keymap=uniapl385'" -alias n=lvim +#alias n=lvim +alias n=nvim export NVIM_TUI_ENABLE_TRUE_COLOR=1 +alias j=just +alias song="yt-dlp -x --audio-format mp3 --audio-quality 0 --embed-thumbnail" # Emacs +alias eh="echo 'e -- emacs -nw -- in terminal +eq -- emacs -nw -q -- no init file +et -- emacsclient -t -- terminal +ec -- emacsclient -c -- new frame +ed -- emacsclient --eval (x-display-list) -- list displays +ecx -- emacsclient --eval (make-frame-on-display \"$DISPLAY\")'" alias e="TERM=xterm-256color emacs -nw" alias eq="e -q" alias et="TERM=xterm-256color emacsclient -t" @@ -249,12 +258,14 @@ gc -- git commit gca -- git commit --amend gd -- git diff gdc -- git diff --cached +gdf -- git diff --stat gdw -- git diff --color-words ge -- git checkout branch geb -- git checkout -b branch gfa -- git fetch --all --prune gl -- git short log gla -- git short log all +glf -- git short log just file names gp -- git push gr -- git remote -v show grs -- git restore --staged file @@ -266,6 +277,7 @@ gu -- git pull'" alias gs="git status" alias gl="git lg" alias gla="git lg --all" +alias glf="git lg --stat" alias ge="git checkout" alias gesp="git checkout --patch" alias geb="git checkout -b" @@ -274,6 +286,7 @@ alias ga="git add" alias gasp="git add --patch" alias gd="git diff" alias gdc="git diff --cached" +alias gdf="git diff --stat" alias gc="git commit" alias gca="git commit --amend" alias gfa="git fetch --all --prune" @@ -301,7 +314,7 @@ function dvt() { function dva() { [ -z $1 ] && echo 'usage: dva ' && return 1 [ -z $(dvl $1) ] && echo "Dev template $1 not found." && return 1 - echo "use flake \"github:the-nix-way/dev-templates?dir=$1\"" >> .envrc + echo "use flake \"github:the-nix-way/dev-templates?dir=$1\" --no-write-lock-file" >> .envrc direnv allow } function dvr() { @@ -310,7 +323,7 @@ function dvr() { if ! grep -q "github:the-nix-way/dev-templates?dir=$1" .envrc; then echo "Dev template $1 not found." && return 1 fi - sed -i "/use flake \"github:the-nix-way\/dev-templates?dir=$1\"/d" .envrc + sed -i "/use flake \"github:the-nix-way\/dev-templates?dir=$1\" --no-write-lock-file/d" .envrc direnv allow } function dve() {