dotfiles/top_level/.bashrc

40 lines
812 B
Bash
Raw Normal View History

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f "${HOME}/.bash_aliases" ]; then
source "${HOME}/.bash_aliases"
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
HISTSIZE=1000000
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
alias nvimc="nvim ~/.config/nvim"
alias bashrc="nvim ~/.bashrc"
alias vpy="source ./venv/bin/activate"
export XDG_CONFIG_HOME=~/.config
function fcd() {
cd $(find . -type d -print | fzf);
}