diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2026-01-10 12:59:58 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2026-01-10 13:07:48 +0000 |
| commit | 00929a7d738f62e930f9b04b33d86a84ced2ea6d (patch) | |
| tree | be837977b1c2c49ab2970ec259a7b294876a0094 | |
| parent | 0204feb86f109a3c769e2d4ec7ac66d96e29c896 (diff) | |
Stow bash
| -rw-r--r-- | bash/.bash_aliases | 16 | ||||
| -rw-r--r-- | bash/.bash_profile | 10 | ||||
| -rw-r--r-- | bash/.bashrc | 5 |
3 files changed, 31 insertions, 0 deletions
diff --git a/bash/.bash_aliases b/bash/.bash_aliases new file mode 100644 index 0000000..ff655bc --- /dev/null +++ b/bash/.bash_aliases @@ -0,0 +1,16 @@ +alias cp='cp -iv' +alias rm='rm -iv' +alias mv='mv -iv' + +# Git +alias lg='lazygit' +alias gs='git status' +alias ga='git add' +alias gb='git branch' +alias gc='git commit' +alias gd='git diff' +alias go='git checkout' +alias gl='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' + +# Nixos +alias ras='sudo nixos-rebuild switch --flake .#' diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..93551ff --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,10 @@ +# .bash_profile sourced by login shells (tty) + +if [ -f ~/.bashrc ] ; then + . ~/.bashrc +fi + +# StartX when first logging in. +if [[ "$(tty)" = "/dev/tty1" ]]; then + startx +fi diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..f17265f --- /dev/null +++ b/bash/.bashrc @@ -0,0 +1,5 @@ +# .bashrc sourced by interactive, non-login shells + +if [ -f ~/.bash_aliases ] ; then + . ~/.bash_aliases +fi |
