From d3c372c3503d4ce37b54cd4083bcf0d5c2318d0b Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Sun, 17 Sep 2023 15:58:45 +0100 Subject: [PATCH] Some nice developer environment bits --- users/tsv/bash_profile | 2 ++ users/tsv/git/config | 3 +++ users/tsv/home.nix | 1 + 3 files changed, 6 insertions(+) diff --git a/users/tsv/bash_profile b/users/tsv/bash_profile index 674ed91..7506d15 100644 --- a/users/tsv/bash_profile +++ b/users/tsv/bash_profile @@ -22,12 +22,14 @@ alias pubip="curl -4 icanhazip.com" alias less="less -r" [[ -f ~/.LESS_TERMCAP ]] && . ~/.LESS_TERMCAP alias checkport="sudo netstat -tnlp | grep" +alias de="devenv" alias dockerpurge="docker system prune --all --force --volumes" alias dockerkill="docker stop \`docker ps -a -q\`" alias vi="nvim" alias tp="$HOME/bin/tmux_pair.bash" alias tpdf="termpdf.py" alias tn="tmux new-window -n" +alias genpdf="pandoc -o migration.pdf -t ms" # Prompt setup GIT_PS1_SHOWDIRTYSTATE=1 diff --git a/users/tsv/git/config b/users/tsv/git/config index 7e7d967..38a8c11 100644 --- a/users/tsv/git/config +++ b/users/tsv/git/config @@ -13,6 +13,7 @@ ap = add --patch aap = !git add --intent-to-add . && git add --patch br = branch + cb = clone --bare co = checkout cm = commit cma = commit --amend @@ -30,6 +31,8 @@ st = status tree = log --oneline --graph --decorate --all undo-commit = reset --soft HEAD~ + wa = worktree add + wr = worktree remove [init] defaultBranch = main [interactive] diff --git a/users/tsv/home.nix b/users/tsv/home.nix index c87c6d3..ba0f1af 100644 --- a/users/tsv/home.nix +++ b/users/tsv/home.nix @@ -39,6 +39,7 @@ friendly-snippets # Collection of predefined snippets fugitive-gitlab-vim git-messenger-vim + git-worktree-nvim gruvbox-nvim hologram-nvim # For images inside kitty nvim-cmp