Watch
1
0
Fork
You've already forked dotfiles
0
dotfiles/.config/shell/aliases
Alexander Hess f2fb31a404
Add configuration for bash
- Add ~/.bashrc
  + Configure on how the `history` works
  + Enable nicer `cd` and globbing behavior
  + Enable tab completion, even for aliases
  + Add some more stuff from Debian's ~/.bashrc
- Add ~/.bash_logout clearing the screen
- Add stubs for ~/.bash_login and ~/.bash_profile
  that redirect to ~/.profile
- Ensure ~/.local/state/bash/ exists
2026-08-20 21:20:03 +02:00

20 lines
368 B
Shell

#!/bin/sh
# Aliases used in all kinds of shells
# Manage the bare `git` repository in ~/ holding the dotfiles
alias dotfiles='git --git-dir=$DOTFILES_DIR --work-tree=$HOME'
forget() { # the current history and restore $HISTFILE from disk
if [ -n "$BASH_VERSION" ]; then
history -c
history -r
fi
}
alias grep='grep --exclude-dir=.git'