mirror of https://github.com/fredrikekre/.dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
567 B
20 lines
567 B
# Common commands for .bashrc. Include by adding the following to .bashrc: |
|
# |
|
# if [ -f ~/.bashrc.dotfiles ]; then |
|
# . ~/.bashrc.dotfiles |
|
# fi |
|
|
|
# dotfiles alias |
|
alias dotfiles='git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME/' |
|
|
|
# Common bash prompt |
|
export PS1="[\[\e[32m\e[1m\]\u@\h\[\e[0m\]:\[\e[34m\e[1m\]\w\[\e[0m\]]\$ " |
|
|
|
# Julia environment variables |
|
export JULIA_PKG_DEVDIR=$HOME/dev |
|
export JULIA_PROJECT=@. |
|
|
|
# Start tmux by default |
|
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then |
|
tmux attach -t default || tmux new -s default |
|
fi
|
|
|