Get aliases and colors into the JupyterLab terminal:
Create a .profile file in $USER containing:
bash
source $USER/.bashrc(Thanks to https://stackoverflow.com/a/70699378)
Get aliases and colors into the JupyterLab terminal:
Create a .profile file in $USER containing:
bash
source $USER/.bashrc(Thanks to https://stackoverflow.com/a/70699378)
| // Bits and pieces gathered from: | |
| // - https://damieng.com/blog/2015/04/24/make-home-end-keys-behave-like-windows-on-mac-os-x | |
| // - comments from other users on that post | |
| // | |
| // Put this file inside ~/Library/KeyBindings | |
| // - you may have to create the folder | |
| // - may also need to change the owner to you `chown` | |
| // - may also need to allow access `chmod 777 ~/Library/KeyBindings` | |
| // | |
| // Also may need to allow access to this file itself |
| PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME} - ${PWD}\007"' | |
| [ -z "$PS1" ] && return | |
| PS1="\[\e[0;36m\]\[\e[1;33m\]>>>>\[\e[0m\] " | |
| complete -cf sudo | |
| export PAGER=less | |
| export EDITOR=vim | |
| export HISTCONTROL=ignorespace:ignoredups | |
| export HISTIGNORE="l:c:x:hg:history" |
| # Often used LFS tracks | |
| # ------------------------------------------------ | |
| # Python-related | |
| *.pkl filter=lfs diff=lfs merge=lfs -text | |
| *.npz filter=lfs diff=lfs merge=lfs -text | |
| # ------------------------------------------------ | |
| # Usual image types | |
| *.png filter=lfs diff=lfs merge=lfs -text |