bash: init
This commit is contained in:
parent
e2172a7001
commit
ebc3412f80
2 changed files with 34 additions and 0 deletions
12
.bash_profile
Normal file
12
.bash_profile
Normal 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
22
.bashrc
Normal 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"
|
Loading…
Add table
Reference in a new issue