First commit
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
##############################################
|
||||
# Aliases (source-of-truth)
|
||||
#
|
||||
# This file is written in bash/zsh alias syntax in [bash_zsh], [bash_specific], [zsh_specific].
|
||||
# Fish has different syntax; the Nix module translates [bash_zsh] into fish format and then
|
||||
# appends [fish_specific] as-is.
|
||||
##############################################
|
||||
|
||||
##############################################
|
||||
# Generic aliases (bash/zsh)
|
||||
# These are intended to be available in bash and zsh.
|
||||
##############################################
|
||||
[bash_zsh]
|
||||
alias ll='ls -lah'
|
||||
alias gs='git status'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
|
||||
alias reb-switch='cd ~/system-master && sudo nixos-rebuild switch --flake ~/system-master#traveldroid'
|
||||
alias reb-test='cd ~/system-master && sudo nixos-rebuild test --flake ~/system-master#traveldroid'
|
||||
alias reb-vm='cd ~/system-master && sudo nixos-rebuild build-vm --flake ~/system-master#traveldroid && "$(ls -1 ./result/bin/run-*-vm | head -n 1)"'
|
||||
|
||||
alias rb='systemctl reboot'
|
||||
alias po='systemctl poweroff'
|
||||
|
||||
alias fpl='flatpak search'
|
||||
alias fpi='flatpak install'
|
||||
alias fpr='flatpak run'
|
||||
|
||||
alias nxc='ssh henrov@nextcloud.data-pro.nu'
|
||||
alias nps='xdg-open https://search.nixos.org'
|
||||
|
||||
alias vs='code'
|
||||
|
||||
alias test-nix='cd ~/system-master && sudo rm -rf ~/conf && sudo rm -rf ~/system-master/configuration && sudo rm -rf ~/system-master/home && git add . && git commit -m "deleted conf and home folders" && emacs README.org --batch -f org-babel-tangle && git add . && git commit && sudo nixos-rebuild test --flake .#traveldroid && emacs -Q --batch README.org -f org-html-export-to-html'
|
||||
|
||||
alias deploy-nix ='cd ~/system-master && sudo rm -rf ~/conf && sudo rm -rf ~/system-master/configuration && sudo rm -rf ~/system-master/home && git add . && git commit -m "deleted conf and home folders" && emacs README.org --batch -f org-babel-tangle && git add . && git commit && sudo nixos-rebuild switch --flake .#traveldroid && emacs -Q --batch README.org -f org-html-export-to-html && systemctl reboot'
|
||||
|
||||
|
||||
|
||||
|
||||
##############################################
|
||||
# Shell-specific aliases / examples
|
||||
#
|
||||
# Everything below is COMMENTED OUT on purpose.
|
||||
# These examples show syntax or commands that are shell-specific
|
||||
# (or behave differently across shells).
|
||||
##############################################
|
||||
|
||||
[bash_specific]
|
||||
# Enable recursive globbing (**)
|
||||
# alias sg='shopt -s globstar'
|
||||
|
||||
[zsh_specific]
|
||||
# Recursive globbing works by default in zsh; this prints matches one-per-line
|
||||
# alias recglob='print -l **/*.nix'
|
||||
|
||||
[fish_specific]
|
||||
# Fish has its own language; this is fish-only syntax (not bash/zsh)
|
||||
# alias setvar='set -gx EDITOR emacs'
|
||||
|
||||
[dash_specific]
|
||||
# dash is a minimal POSIX shell; shown here only as an example
|
||||
# alias com='command -v ls'
|
||||
|
||||
[nushell_specific]
|
||||
# Nushell pipelines structured data; this is nu-only syntax
|
||||
# alias fbf='ls | where size > 1mb | get name'
|
||||
Reference in New Issue
Block a user