diff --git a/bash/.bash_profile b/bash/.bash_profile index f75cb46..3603f70 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -9,4 +9,4 @@ fi export EDITOR=nvim -if [ -e /home/0xa/.nix-profile/etc/profile.d/nix.sh ]; then . /home/0xa/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer +if [ -e /home/gshipunov/.nix-profile/etc/profile.d/nix.sh ]; then . /home/gshipunov/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer diff --git a/bash/.bashrc b/bash/.bashrc index 4b08352..ad4581e 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -15,8 +15,13 @@ export PATH # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= -# Prompt -export PS1="\u@\h:\[\e[0;92m\]\w\[\e[0m\]$ " - # User specific aliases and functions -alias luamk="latexmk -pdf -pvc -interaction=nonstopmode -pdflatex=lualatex" +if [ -d ~/.bashrc.d ]; then + for rc in ~/.bashrc.d/*; do + if [ -f "$rc" ]; then + . "$rc" + fi + done +fi + +unset rc diff --git a/bash/.bashrc.d/alias.sh b/bash/.bashrc.d/alias.sh new file mode 100644 index 0000000..c433eb1 --- /dev/null +++ b/bash/.bashrc.d/alias.sh @@ -0,0 +1 @@ +alias luamk="latexmk -pdf -pvc -interaction=nonstopmode -pdflatex=lualatex"