b580b9d649
All checks were successful
release / build-base (push) Successful in 4m22s
release / build-digital-heavy (push) Successful in 21m22s
release / build-digital-ator (push) Successful in 21m42s
release / build-digital-icarus (push) Successful in 21m40s
release / build-analog-xk (push) Successful in 26m27s
release / build-analog-xm (push) Successful in 26m42s
release / build-heavy (push) Successful in 26m55s
release / build-analog-heavy (push) Successful in 27m9s
release / build-chipathon-tools (push) Successful in 16m4s
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
[[ $- != *i* ]] && return
|
|
|
|
# ------------------
|
|
# SET PDK PARAMETERS
|
|
# ------------------
|
|
|
|
if [ "$PDK" == "" ]; then
|
|
echo "PDK not defined, using default one (gf180mcuD)"
|
|
PDK=gf180cmuD
|
|
fi
|
|
|
|
case "$PDK" in
|
|
gf180mcuC) export STD_CELL_LIBRARY=gf180mcu_fd_sc_mcu7t5v0 ;;
|
|
gf180mcuD) export STD_CELL_LIBRARY=gf180mcu_fd_sc_mcu7t5v0 ;;
|
|
sky130A) export STD_CELL_LIBRARY=sky130_fd_sc_hd ;;
|
|
*) echo "PDK $PDK NOT RECOGNIZED";;
|
|
esac
|
|
|
|
export PDKPATH=$PDK_ROOT/$PDK
|
|
|
|
export KLAYOUT_HOME=$PDK_ROOT/$PDK/libs.tech/klayout
|
|
|
|
alias xschem='xschem -b --rcfile $PDK_ROOT/$PDK/libs.tech/xschem/xschemrc'
|
|
alias xschemtcl='xschem --rcfile $PDK_ROOT/$PDK/libs.tech/xschem/xschemrc'
|
|
#alias magic='magic --rcfile $PDK_ROOT/$PDK/libs.tech/magic/*.magicrc'
|
|
|
|
# ------------------
|
|
# SET PROMPT
|
|
# ------------------
|
|
|
|
function git_branch {
|
|
branch=$(git symbolic-ref --short HEAD 2>/dev/null)
|
|
if [ "$branch" != "" ]; then
|
|
echo "[$branch]"
|
|
fi
|
|
}
|
|
|
|
c_res='\[\033[00m\]' # Reset
|
|
c_bla='\[\033[01;30m\]' # Black
|
|
c_red='\[\033[01;31m\]' # Red
|
|
c_gre='\[\033[01;32m\]' # Green
|
|
c_yel='\[\033[01;33m\]' # Yellow
|
|
c_blu='\[\033[01;34m\]' # Blue
|
|
c_pur='\[\033[01;35m\]' # Purple
|
|
c_cya='\[\033[01;36m\]' # Cyan
|
|
c_whi='\[\033[01;37m\]' # White
|
|
|
|
# export PS1="${c_pur}\w $(git_branch)\n${c_res}\$ " ## This dont work :(
|
|
PS1="${c_pur}\w \n${c_res}\$ " ## This dont work :(
|
|
|
|
# --------------------------------
|
|
# USEFUL ENV VARIABLES AND ALIASES
|
|
# --------------------------------
|
|
|
|
alias ls="ls --color=auto -XF"
|
|
alias grep="grep --color=auto"
|
|
|
|
git config --global --add safe.directory /home/designer/shared
|
|
git config --global --add safe.directory /workspaces/*
|