# What's inside my .bashrc ? - Linux
Data Science for Political and Social Phenomena
Author: Guillaume Redoulès

# What's inside my .bashrc ?

    ############
    # Anaconda #
    ############

    export PATH="/station/guillaume/anaconda3/bin:$PATH"
    alias python='/station/guillaume/anaconda3/bin/python'

    #########
    # Alias #
    #########

    alias ding='echo -e "\a"'
    alias calc='python -ic "from __future__ import division; from math import *"'
    alias h="history|grep "
    alias f="find . |grep "
    alias p="ps aux |grep "
    alias cdl="cd /data/guillaume"
    alias cp="rsync -avz --progress"
    alias grep="grep --color=auto"
    alias ls="ls  -hN --color=auto --group-directories-first"
    alias ll="ls -hal"
    alias sv="ssh compute_cluster"
    alias ms="ls"

    alias jl="jupyter lab"
    alias lst="jupyter notebook list"

    ##########################
    # bashrc personnalisation#
    ##########################

    force_color_prompt=yes
    export EDITOR=nano
    export BROWSER="firefox '%s' &"
    if [ -n "$force_color_prompt" ]; then
        if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
            # We have color support; assume it's compliant with Ecma-48
            # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
            # a case would tend to support setf rather than setaf.)
            color_prompt=yes
        else
            color_prompt=
        fi
    fi

    if [ "$color_prompt" = yes ]; then
        #\h : hostname
        #\u : user
        #\w : current working directory
        #\d : date
        #\t : time

        yellow=226
        green=83
        pink=198
        blue=34

       PS1="\[\033[38;5;22m\]\u\[$(tput sgr0)\]\[\033[38;5;163m\]@\[$(tput sgr0)\]\[\033[38;5;22m\]\h\[$(tput sgr0)\]\[\033[38;5;162m\]:\[$(tput sgr0)\]\[\033[38;5;172m\]{\[$(tput sgr0)\]\[\033[38;5;39m\]\w\[$(tput sgr0)\]\[\033[38;5;172m\]}\[$(tput sgr0)\]\[\033[38;5;162m\]>\[$(tput sgr0)\]"

### Find an error or bug? Have a suggestion?

Everything on this site is avaliable on GitHub. Head on over and submit an issue. You can also message me directly by email.