split out .profile
This commit is contained in:
6
Makefile
6
Makefile
@@ -19,12 +19,12 @@ clean:
|
||||
|
||||
# Build and tag docker image
|
||||
build:
|
||||
docker build . -t dotfiles
|
||||
docker build . -t dotfiles:latest
|
||||
|
||||
# Run tests in docker container (args to specify test)
|
||||
test:
|
||||
docker run dotfiles
|
||||
docker run dotfiles:latest
|
||||
|
||||
# Launch bash in docker container
|
||||
start:
|
||||
docker run -it dotfiles /bin/bash
|
||||
docker run -it dotfiles:latest /bin/bash
|
||||
|
||||
10
bash/.bash_profile
Normal file
10
bash/.bash_profile
Normal file
@@ -0,0 +1,10 @@
|
||||
# Load .profile, containing login, non-bash related initializations.
|
||||
source "$HOME/.profile"
|
||||
|
||||
# Load .bashrc, containing non-login related bash initializations.
|
||||
source "$HOME/.bashrc"
|
||||
|
||||
|
||||
# References:
|
||||
# https://unix.stackexchange.com/questions/192521/loading-profile-from-bash-profile-or-not-using-bash-profile-at-all
|
||||
# https://www.stefaanlippens.net/my_bashrc_aliases_profile_and_other_stuff/
|
||||
34
bash/.bashrc
34
bash/.bashrc
@@ -1,37 +1,3 @@
|
||||
# ---------------------------------------------------------------------------- #
|
||||
# Cross-shell
|
||||
# ---------------------------------------------------------------------------- #
|
||||
|
||||
# config
|
||||
XDG_CONFIG_HOME="$HOME/.config"
|
||||
|
||||
# workspace
|
||||
WORKSPACE="$HOME/workspace"
|
||||
|
||||
# .local
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# pyenv
|
||||
PYENV_ROOT="$HOME/.pyenv"
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
export PATH="$PYENV_ROOT/shims:$PATH"
|
||||
[ -x "$(command -v pyenv)" ] && eval "$(pyenv init -)"
|
||||
|
||||
# poetry
|
||||
POETRY_ROOT="$HOME/.poetry"
|
||||
export PATH="$POETRY_ROOT/bin:$PATH"
|
||||
|
||||
# nvm
|
||||
NVM_DIR="$HOME/.nvm"
|
||||
export PATH="$NVM_DIR/bin:$PATH"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------- #
|
||||
# Bash specific
|
||||
# ---------------------------------------------------------------------------- #
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
|
||||
29
bash/.profile
Normal file
29
bash/.profile
Normal file
@@ -0,0 +1,29 @@
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
||||
# config
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
|
||||
# workspace
|
||||
export WORKSPACE="$HOME/workspace"
|
||||
|
||||
# .local
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# pyenv
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
export PATH="$PYENV_ROOT/shims:$PATH"
|
||||
[ -x "$(command -v pyenv)" ] && eval "$(pyenv init -)"
|
||||
|
||||
# poetry
|
||||
export POETRY_ROOT="$HOME/.poetry"
|
||||
export PATH="$POETRY_ROOT/bin:$PATH"
|
||||
|
||||
# nvm
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
export PATH="$NVM_DIR/bin:$PATH"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
||||
@@ -24,9 +24,6 @@ set -x PATH $POETRY_ROOT/bin $PATH
|
||||
# nvm
|
||||
# set NVM_ROOT $HOME/.nvm
|
||||
# set -x PATH $NVM_ROOT/bin $PATH
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------- #
|
||||
# Fish specific
|
||||
|
||||
Reference in New Issue
Block a user