mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
57 lines
1.1 KiB
Bash
57 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
# https://github.com/starr-dusT/dotfiles
|
|
|
|
# nixos
|
|
alias nu="cd ~/.local/share/chezmoi/provision && \
|
|
sudo nixos-rebuild switch --flake .#$(hostname) && \
|
|
cd -"
|
|
# sway
|
|
alias s='sway'
|
|
|
|
# hyprland
|
|
alias h='Hyprland'
|
|
|
|
# tmuxp
|
|
alias t='linux-tmuxp-launcher'
|
|
|
|
alias tw='linux-toggle-vpn'
|
|
|
|
# chezmoi
|
|
alias cc="cd ~/.local/share/chezmoi"
|
|
alias cdr="chezmoi apply --verbose --dry-run"
|
|
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'
|
|
alias rofi='wayland-rofi'
|
|
|
|
# zk
|
|
alias cz="cd ~/documents/zet"
|
|
|
|
# nnn
|
|
|
|
# Open nnn at location you closed it
|
|
n() {
|
|
nnn -r -e $(cat ~/.nnn_last)
|
|
echo "$(pwd)" > ~/.nnn_last
|
|
}
|
|
|
|
alias cp="cpg -g"
|
|
alias mv="mvg -g"
|
|
|
|
# git
|
|
alias gs="git status"
|
|
alias gc="git commit"
|
|
alias ga="git add ."
|
|
alias gd="git diff"
|
|
alias gl="git log"
|
|
|
|
# dev
|
|
alias dp="docker pull ghcr.io/starr-dust/dev-container:master"
|
|
alias dr='docker run --rm --name $(date +%Y%m%d%k%M%S) -p 8082:8082 -v $(pwd):/root/src -it ghcr.io/starr-dust/dev-container:master'
|