···11+# ~/.bashrc: executed by bash(1) for non-login shells.
22+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
33+# for examples
44+55+# If not running interactively, don't do anything
66+case $- in
77+ *i*) ;;
88+ *) return;;
99+esac
1010+1111+# don't put duplicate lines or lines starting with space in the history.
1212+# See bash(1) for more options
1313+HISTCONTROL=ignoreboth
1414+1515+# append to the history file, don't overwrite it
1616+shopt -s histappend
1717+1818+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
1919+HISTSIZE=1000
2020+HISTFILESIZE=2000
2121+2222+# check the window size after each command and, if necessary,
2323+# update the values of LINES and COLUMNS.
2424+shopt -s checkwinsize
2525+2626+# If set, the pattern "**" used in a pathname expansion context will
2727+# match all files and zero or more directories and subdirectories.
2828+#shopt -s globstar
2929+3030+# make less more friendly for non-text input files, see lesspipe(1)
3131+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
3232+3333+# set variable identifying the chroot you work in (used in the prompt below)
3434+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
3535+ debian_chroot=$(cat /etc/debian_chroot)
3636+fi
3737+3838+# set a fancy prompt (non-color, unless we know we "want" color)
3939+case "$TERM" in
4040+ xterm-color|*-256color) color_prompt=yes;;
4141+esac
4242+4343+# uncomment for a colored prompt, if the terminal has the capability; turned
4444+# off by default to not distract the user: the focus in a terminal window
4545+# should be on the output of commands, not on the prompt
4646+#force_color_prompt=yes
4747+4848+if [ -n "$force_color_prompt" ]; then
4949+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
5050+ # We have color support; assume it's compliant with Ecma-48
5151+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
5252+ # a case would tend to support setf rather than setaf.)
5353+ color_prompt=yes
5454+ else
5555+ color_prompt=
5656+ fi
5757+fi
5858+5959+if [ "$color_prompt" = yes ]; then
6060+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
6161+else
6262+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
6363+fi
6464+unset color_prompt force_color_prompt
6565+6666+# If this is an xterm set the title to user@host:dir
6767+case "$TERM" in
6868+xterm*|rxvt*)
6969+ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
7070+ ;;
7171+*)
7272+ ;;
7373+esac
7474+7575+# enable color support of ls and also add handy aliases
7676+if [ -x /usr/bin/dircolors ]; then
7777+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
7878+ alias ls='ls --color=auto'
7979+ #alias dir='dir --color=auto'
8080+ #alias vdir='vdir --color=auto'
8181+8282+ alias grep='grep --color=auto'
8383+ alias fgrep='fgrep --color=auto'
8484+ alias egrep='egrep --color=auto'
8585+fi
8686+8787+# colored GCC warnings and errors
8888+#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
8989+9090+# some more ls aliases
9191+alias ll='ls -alF'
9292+alias la='ls -A'
9393+alias l='ls -CF'
9494+9595+# Add an "alert" alias for long running commands. Use like so:
9696+# sleep 10; alert
9797+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$//'\'')"'
9898+9999+# Alias definitions.
100100+# You may want to put all your additions into a separate file like
101101+# ~/.bash_aliases, instead of adding them here directly.
102102+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
103103+104104+if [ -f ~/.bash_aliases ]; then
105105+ . ~/.bash_aliases
106106+fi
107107+108108+# enable programmable completion features (you don't need to enable
109109+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
110110+# sources /etc/bash.bashrc).
111111+if ! shopt -oq posix; then
112112+ if [ -f /usr/share/bash-completion/bash_completion ]; then
113113+ . /usr/share/bash-completion/bash_completion
114114+ elif [ -f /etc/bash_completion ]; then
115115+ . /etc/bash_completion
116116+ fi
117117+fi
118118+. "$HOME/.cargo/env"
+30
.profile
···11+# ~/.profile: executed by the command interpreter for login shells.
22+# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
33+# exists.
44+# see /usr/share/doc/bash/examples/startup-files for examples.
55+# the files are located in the bash-doc package.
66+77+# the default umask is set in /etc/profile; for setting the umask
88+# for ssh logins, install and configure the libpam-umask package.
99+#umask 022
1010+1111+# if running bash
1212+if [ -n "$BASH_VERSION" ]; then
1313+ # include .bashrc if it exists
1414+ if [ -f "$HOME/.bashrc" ]; then
1515+ . "$HOME/.bashrc"
1616+ fi
1717+fi
1818+1919+# set PATH so it includes user's private bin if it exists
2020+if [ -d "$HOME/bin" ] ; then
2121+ PATH="$HOME/bin:$PATH"
2222+fi
2323+2424+# set PATH so it includes user's private bin if it exists
2525+if [ -d "$HOME/.local/bin" ] ; then
2626+ PATH="$HOME/.local/bin:$PATH"
2727+fi
2828+. "$HOME/.cargo/env"
2929+3030+alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'