diff --git a/dotfiles/.local/aliases b/dotfiles/.local/aliases index 10fd5b19..ace8c0b8 100644 --- a/dotfiles/.local/aliases +++ b/dotfiles/.local/aliases @@ -1,3 +1,9 @@ +# Fix for auto expansion (source: https://wiki.archlinux.org/title/Sudo#Passing_aliases) +alias sudo='sudo ' + +# Reload current shell +alias reload="exec ${SHELL} -l" + # Create an Authelia password hash alias autheliapassword='docker run authelia/authelia:latest authelia hash-password' diff --git a/dotfiles/.local/share/chezmoi/.chezmoiexternal.toml b/dotfiles/.local/share/chezmoi/.chezmoiexternal.toml new file mode 100644 index 00000000..e69de29b diff --git a/dotfiles/.profile b/dotfiles/.profile index b3143a45..2ab7ff50 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -217,8 +217,8 @@ export BAT_CONFIG_PATH="$HOME/.config/batrc" if command -v bat > /dev/null; then export MANPAGER="sh -c 'col -bx | bat -l man -p'" alias bathelp='bat --plain --language=help' - alias cat='bat --paging=never' - alias less='bat' + alias cat='bat -pp' + alias less='bat --paging=always' help() { "$@" --help 2>&1 | bathelp } @@ -241,6 +241,8 @@ fi if command -v exa > /dev/null; then alias ls='exa --long --all --color auto --icons --sort=type' alias tree='exa --tree' + alias la='ls -la' + alias lt='ls --tree --level=2' fi ### fzf @@ -289,6 +291,9 @@ export PATH="$POETRY_HOME/bin:$PATH" ### ripgrep export RIPGREP_CONFIG_PATH="$HOME/.config/ripgreprc" +if command -v rg &> /dev/null; then + alias grep='rg' +fi ### Ruby export GEM_HOME="$HOME/.local/gems"