2023-09-12 22:13:38 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# https://github.com/starr-dusT/dotfiles
|
|
|
|
|
|
|
|
# nixos
|
2023-10-14 21:21:11 -07:00
|
|
|
alias nu="cd ~/.local/share/chezmoi/provision && \
|
2024-07-21 20:47:43 -07:00
|
|
|
sudo nixos-rebuild switch --impure --flake .#$(hostname) && \
|
2023-10-09 16:01:18 -07:00
|
|
|
cd -"
|
2024-09-29 09:38:57 -07:00
|
|
|
alias nb="cd ~/.local/share/chezmoi/provision && \
|
|
|
|
sudo nix run .#nixosConfigurations.wsl.config.system.build.tarballBuilder && \
|
|
|
|
cd -"
|
2024-09-24 22:45:56 -07:00
|
|
|
|
|
|
|
# sesh
|
2025-02-09 16:27:08 -08:00
|
|
|
function b() {
|
2024-09-24 22:45:56 -07:00
|
|
|
{
|
|
|
|
exec </dev/tty
|
|
|
|
exec <&1
|
|
|
|
local session
|
|
|
|
session=$(sesh list -i | fzf --ansi --height 40% --reverse --border-label ' sesh ' --border --prompt '⚡ ')
|
|
|
|
[[ -z "$session" ]] && return
|
|
|
|
sesh connect $session
|
|
|
|
}
|
|
|
|
}
|
2023-09-12 22:13:38 -07:00
|
|
|
|
|
|
|
# chezmoi
|
|
|
|
alias cc="cd ~/.local/share/chezmoi"
|
|
|
|
alias ca="chezmoi apply"
|
|
|
|
alias ce='chezmoi edit'
|
|
|
|
|
|
|
|
# trashcli
|
|
|
|
alias tp='trash-put'
|
|
|
|
alias te='trash-empty'
|
|
|
|
alias tl='trash-list'
|
|
|
|
alias tre='trash-restore'
|
|
|
|
alias trm='trash-rm'
|
2023-12-18 13:06:30 -08:00
|
|
|
|
2025-02-09 16:32:17 -08:00
|
|
|
# cp and mv with progress
|
2023-10-13 21:26:38 -07:00
|
|
|
alias cp="cpg -g"
|
|
|
|
alias mv="mvg -g"
|
2023-10-13 22:32:38 -07:00
|
|
|
|
|
|
|
# git
|
|
|
|
alias gs="git status"
|
|
|
|
alias gc="git commit"
|
|
|
|
alias ga="git add ."
|
|
|
|
alias gd="git diff"
|
2023-10-14 00:09:25 -07:00
|
|
|
alias gl="git log"
|
2024-02-20 19:05:58 -08:00
|
|
|
|
2024-09-15 17:21:36 -07:00
|
|
|
# rsync
|
|
|
|
alias rsync.net="ssh fm2120@fm2120.rsync.net"
|