diff options
Diffstat (limited to 'bash/dot-bashrc')
| -rw-r--r-- | bash/dot-bashrc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/bash/dot-bashrc b/bash/dot-bashrc index 0c0c2a2..cc15ea0 100644 --- a/bash/dot-bashrc +++ b/bash/dot-bashrc @@ -1,5 +1,6 @@ # ~/.bashrc # vim: ft=bash +# shellcheck shell=bash # If not running interactively, don't do anything [[ $- != *i* ]] && return @@ -10,15 +11,18 @@ export HISTSIZE=10000 shopt -s autocd shopt -s checkwinsize +shopt -u promptvars -source "${XDG_CONFIG_HOME:-$HOME/.config}"/bash/gentoo-color.bash +PS1='[\[\e[32m\]\u@\h\[\e[34m\] \W\[\e[00m\]]\$ ' function ls() { - command ls --color=auto --indicator-style=classify --human-readable --literal --group-directories-first -v "$@" # -v is for natural sort of numbers within text + command ls --color=auto --indicator-style=classify --human-readable --literal --group-directories-first -v "$@" # -v is for natural sort of numbers within text } # coreutils +alias diff='diff --color=auto' +alias grep='grep --color=auto' alias cp='cp -riv' alias ll='ls --all -l --human-readable' # -l = long listing format alias l='ls -l' @@ -34,21 +38,26 @@ alias p='sudo pacman' alias SS='sudo systemctl' alias Su='systemctl --user' alias v='nvim' +alias vn='NVIM_APPNAME=nvim-min nvim' alias vv='uv run nvim' -alias todo='nvim ~/notes.md' alias neofetch='fastfetch -c examples/13' alias cvim='nvim -c "cd ~/.config/nvim" -c "Ex"' +alias hm='home-manager --flake ~/nix' # source: https://wiki.archlinux.org/title/GnuPG#Configure_pinentry_to_use_the_correct_TTY GPG_TTY="$(tty)" export GPG_TTY gpg-connect-agent updatestartuptty /bye >/dev/null +# shellcheck source=functions.bash source "${XDG_CONFIG_HOME:-$HOME/.config}"/bash/functions.bash + +# shellcheck source=notes.bash source "${XDG_CONFIG_HOME:-$HOME/.config}"/bash/notes.bash bind '"\C-o":"\C-ulf\C-m"' +# shellcheck source=.config/shellshort/shortcutrc source "${XDG_CONFIG_HOME:-$HOME/.config}"/shellshort/shortcutrc export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git' |
