bash: init

This commit is contained in:
Grigory Shipunov 2021-06-25 19:47:48 +02:00
parent e2172a7001
commit ebc3412f80
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C
2 changed files with 34 additions and 0 deletions

12
.bash_profile Normal file
View file

@ -0,0 +1,12 @@
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
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

22
.bashrc Normal file
View file

@ -0,0 +1,22 @@
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
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"