dotfiles

My personal dotfiles

commit c8a8d8a7917d169bee7e590ed7c10852f2231c7e
parent 8fb4dbd281f68f8e2c788fb9f348205a12329db8
Author: Pablo <pablo-escobar@riseup.net>
Date:   Fri,  2 Apr 2021 17:10:46 +0000

Added the .bashrc and the .profile to the dotfiles repo

Diffstat:
A.bashrc | 74++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
M.local/share/configs.list | 2++
A.profile | 14++++++++++++++
3 files changed, 90 insertions(+), 0 deletions(-)
diff --git a/.bashrc b/.bashrc
@@ -0,0 +1,74 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+# We use preexec and precmd hook functions for Bash
+# If you have anything that's using the Debug Trap or PROMPT_COMMAND 
+# change it to use preexec or precmd
+# See also https://github.com/rcaloras/bash-preexec
+
+# If not running interactively, don't do anything
+case $- in
+  *i*) ;;
+  *) return;;
+esac
+
+# 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
+
+# Make it so that the pattern "**" used in a pathname expansion context will
+# match all files and zero or more directories and subdirectories.
+shopt -s globstar
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
+  debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# Enable color support 
+if [ -x /usr/bin/dircolors ]; then
+  eval "$(dircolors -b)"
+fi
+
+# 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$//'\'')"'
+
+# Enable programmable completion features (you don't need to enable
+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+# sources /etc/bash.bashrc)
+if ! shopt -oq posix; then
+  if [ -f /usr/share/bash-completion/bash_completion ]; then
+    . /usr/share/bash-completion/bash_completion
+  elif [ -f /etc/bash_completion ]; then
+    . /etc/bash_completion
+  fi
+fi
+
+# Sources environment variables
+source ~/.local/bin/exports.sh
+
+# Set the prompt
+if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
+  PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\]]\$ '
+else
+  PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\w]\$ '
+fi
+
+# Make less more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# Source fzf completions
+[ -f ~/.local/bin/fzf.bash ] && source ~/.local/bin/fzf.bash
+
diff --git a/.local/share/configs.list b/.local/share/configs.list
@@ -18,3 +18,5 @@
 /home/pablo/.config/tmux/tmux.conf
 /home/pablo/.config/zathura
 /home/pablo/.config/aspell
+/home/pablo/.profile
+/home/pablo/.bashrc
diff --git a/.profile b/.profile
@@ -0,0 +1,14 @@
+#                     __ _ _      
+#                    / _(_) |     
+#    _ __  _ __ ___ | |_ _| | ___ 
+#   | '_ \| '__/ _ \|  _| | |/ _ \
+#  _| |_) | | | (_) | | | | |  __/
+# (_) .__/|_|  \___/|_| |_|_|\___|
+#   | |                           
+#   |_|                           
+# 
+# Pablo (C) 2021
+
+# Sources environment variables
+source "$HOME/.local/bin/exports.sh"
+