Created
March 5, 2026 17:06
-
-
Save dineshadepu/c72c939f0b1c98dca7038751a1d00bc9 to your computer and use it in GitHub Desktop.
DWI199a bashrc file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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= | |
| # User specific aliases and functions | |
| if [ -d ~/.bashrc.d ]; then | |
| for rc in ~/.bashrc.d/*; do | |
| if [ -f "$rc" ]; then | |
| . "$rc" | |
| fi | |
| done | |
| fi | |
| unset rc | |
| . "$HOME/.cargo/env" | |
| # don't put duplicate lines or lines starting with space in the history. | |
| # See bash(1) for more options | |
| HISTCONTROL=ignoreboth | |
| # append to the history file, don't overwrite it | |
| shopt -s histappend | |
| # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
| HISTSIZE=1000 | |
| HISTFILESIZE=2000 | |
| # check the window size after each command and, if necessary, | |
| # update the values of LINES and COLUMNS. | |
| shopt -s checkwinsize | |
| # If set, the pattern "**" used in a pathname expansion context will | |
| # match all files and zero or more directories and subdirectories. | |
| #shopt -s globstar | |
| # set a fancy prompt (non-color, unless we know we "want" color) | |
| case "$TERM" in | |
| xterm-color|*-256color) color_prompt=yes;; | |
| esac | |
| # enable color support of ls and also add handy aliases | |
| if [ -x /usr/bin/dircolors ]; then | |
| test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
| alias ls='ls --color=auto' | |
| #alias dir='dir --color=auto' | |
| #alias vdir='vdir --color=auto' | |
| alias grep='grep --color=auto' | |
| alias fgrep='fgrep --color=auto' | |
| alias egrep='egrep --color=auto' | |
| fi | |
| # colored GCC warnings and errors | |
| #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' | |
| # some more ls aliases | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| # Add an "alert" alias for long running commands. Use like so: | |
| # sleep 10; alert | |
| alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | |
| # Alias definitions. | |
| # My configuration starts | |
| source ~/git-completion.bash | |
| # export PATH="$HOME/miniconda3/bin:$PATH" | |
| # colors! | |
| green="\[\033[0;32m\]" | |
| blue="\[\033[0;34m\]" | |
| purple="\[\033[0;35m\]" | |
| reset="\[\033[0m\]" | |
| # Change command prompt | |
| source ~/git-prompt.sh | |
| export GIT_PS1_SHOWDIRTYSTATE=1 | |
| # '\u' adds the name of the current user to the prompt | |
| # '\$(__git_ps1)' adds git-related stuff | |
| # '\W' adds the name of the current directory | |
| export PS1="\n\n$green\u@dwi199a$purple\$(__git_ps1)$blue \$PWD $ $reset \n| $reset lab desktop => " | |
| # PATH=/usr/racket/bin:$PATH | |
| if [[ $- == *i* ]]; then | |
| bind '"\e[A": history-search-backward' | |
| bind '"\e[B": history-search-forward' | |
| fi | |
| # sync bash history across terminals | |
| export HISTCONTROL=ignoredups:erasedups # no duplicate entries | |
| export HISTSIZE=100000 # big big history | |
| export HISTFILESIZE=100000 # big big history | |
| shopt -s histappend # append to history, don't overwrite it | |
| # Save and reload the history after each command finishes | |
| export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | |
| # fuzzy completion | |
| alias ..="cd .." | |
| alias ...="cd ../../" | |
| alias l='ls -l' | |
| alias la='ls -a' | |
| alias sl="ls" | |
| alias s="ls" | |
| alias v="pysph view" | |
| alias rmp="rm -rf" | |
| alias open="xdg-open" | |
| alias batp="bat -l=py" | |
| # ================= | |
| # Cuda installation | |
| # ================= | |
| export CUDA_HOME=/usr/local/cuda | |
| export CUDA_PATH=/usr/local/cuda | |
| export PATH=$CUDA_HOME/bin:$PATH | |
| export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH | |
| # ======================= | |
| # Cuda installation ends | |
| # ======================= | |
| . "$HOME/.acodyn/env" | |
| # ========================= | |
| # Conda | |
| # ========================= | |
| . "$HOME/.acodyn/env" | |
| # # >>> conda initialize >>> | |
| # __conda_setup="$('/home/dineshadepu/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" | |
| # eval "$__conda_setup" | |
| # unset __conda_setup | |
| # # <<< conda initialize <<< | |
| # ========================= | |
| # Qt + Matplotlib | |
| # ========================= | |
| export QT_QPA_PLATFORM=xcb | |
| export MPLBACKEND=TkAgg | |
| # ========================= | |
| # Snap | |
| # ========================= | |
| export PATH=$PATH:/snap/bin | |
| # ===================== | |
| # ===================== | |
| # Kokkos install prefix | |
| export KOKKOS_INSTALL_DIR=/home/dineshadepu/life/softwares/ecp/kokkos/install | |
| # HDF5 for Cabana | |
| export HDF5_ROOT=/home/dineshadepu/life/softwares/ecp/hdf5 | |
| export PATH=$HDF5_ROOT/bin:$PATH | |
| # Cabana install prefix | |
| export CABANA_INSTALL_DIR=/home/dineshadepu/life/softwares/ecp/Cabana/build/install | |
| # ===================== | |
| # ===================== | |
| # Force GCC toolchain (NO CLANG) | |
| export CC=/usr/bin/gcc | |
| export CXX=/usr/bin/g++ | |
| # Paraview path | |
| # export PATH="/home/dineshadepu/life/softwares/paraview/bin:$PATH" | |
| alias paraview='LD_LIBRARY_PATH=/home/dineshadepu/life/softwares/paraview/lib:$LD_LIBRARY_PATH /home/dineshadepu/life/softwares/paraview/bin/paraview' | |
| # export PATH="/home/dineshadepu/life/softwares/paraview/bin:$PATH" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment