about summary refs log tree commit diff stats
path: root/.config/bash
diff options
context:
space:
mode:
Diffstat (limited to '.config/bash')
-rw-r--r--.config/bash/aliases24
-rw-r--r--.config/bash/functions92
-rw-r--r--.config/bash/profile4
-rw-r--r--.config/bash/prompt51
-rw-r--r--.config/bash/rc21
5 files changed, 0 insertions, 192 deletions
diff --git a/.config/bash/aliases b/.config/bash/aliases
deleted file mode 100644
index b2abf41..0000000
--- a/.config/bash/aliases
+++ /dev/null
@@ -1,24 +0,0 @@
-# vim: ft=sh
-
-alias ls="eza -laH --group-directories-first"
-alias la="eza -aH --group-directories-first"
-alias l="eza -H --group-directories-first"
-
-alias du="dust"
-alias df="duf"
-alias history="mcfly"
-alias top="bottom"
-alias ping="gping"
-alias dig="dog"
-
-# git aliases
-alias g="git"
-alias gs="git status"
-alias gc="git commit"
-alias gd="git diff"
-alias gl="git log --oneline --decorate"
-
-alias cfg="git --git-dir=$HOME/.local/share/dotfiles-repo/ --work-tree=$HOME"
-
-alias monerod="monerod --data-dir "$XDG_DATA_HOME"/bitmonero"
-alias update-web="ssh vern.cc -t \"cd public_html; git pull\""
diff --git a/.config/bash/functions b/.config/bash/functions
deleted file mode 100644
index c2bfff2..0000000
--- a/.config/bash/functions
+++ /dev/null
@@ -1,92 +0,0 @@
-# vim: ft=sh
-
-pf() {
-    # project finder
-    root_dir="$HOME/docs/src"
-    selected_dir=$(find "$root_dir" -maxdepth 1 -type d | sed "s:$root_dir::;s:/::;/^$/ d" | BEMENU_BACKEND=curses bemenu -p "Choose directory") && cd "$root_dir"/"$selected_dir" || return
-}
-
-xb() {
-    # function for handling xbps in a nicer way
-    case $1 in
-        install | i)
-            sudo xbps-install "${@:2}"
-            ;;
-        remove | r)
-            sudo xbps-remove -R "${@:2}"
-            ;;
-        query | q)
-            xbps-query "${@:2}"
-            ;;
-        search | s)
-            xbps-query -Rs "${@:2}"
-            ;;
-        upgrade | u)
-            sudo xbps-install -Su
-            ;;
-        locate | l)
-            xlocate "${@:2}"
-            ;;
-        *)
-            printf "Usage:\n"
-            printf "xb i: xbps-install\n"
-            printf "xb r: xbps-remove -R\n"
-            printf "xb q: xbps-query\n"
-            printf "xb s: xbps-query -Rs\n"
-            printf "xb u: xbps-install -Su\n"
-            printf "xb l: xlocate\n"
-            ;;
-    esac
-}
-
-p() {
-    # function for handling pacman in a nicer way too
-    case $1 in
-        install | i)
-            sudo pacman -S "${@:2}"
-            ;;
-        remove | r)
-            sudo pacman -Rns "${@:2}"
-            ;;
-        query | q)
-            pacman -Q "${@:2}"
-            ;;
-        search | s)
-            pacman -Ss "${@:2}"
-            ;;
-        upgrade | u)
-            sudo pacman -Syu
-            ;;
-        locate | l)
-            pacman -F "${@:2}"
-            ;;
-        *)
-            printf "Usage:\n"
-            printf "p i: pacman -S\n"
-            printf "p r: pacman -Rns\n"
-            printf "p q: pacman -Qs\n"
-            printf "p s: pacman -Ss\n"
-            printf "p u: pacman -Syu\n"
-            printf "p l: pacman -F\n"
-            ;;
-    esac
-}
-
-ap() {
-    # function to make aurutils a bit more friendly
-    case $1 in
-	i)
-	    aur sync ${@:2}
-	    sudo pacman -S ${@:2}
-	    ;;
-	u)
-	    aur sync -u
-	    sudo pacman -Syu
-	    ;;
-        *)
-            printf "Usage:\n"
-            printf "ap i: aur sync && pacman -S\n"
-            printf "ap u: aur sync -u && pacman -Syu\n"
-	    ;;
-    esac
-}
diff --git a/.config/bash/profile b/.config/bash/profile
deleted file mode 100644
index 6d8c25b..0000000
--- a/.config/bash/profile
+++ /dev/null
@@ -1,4 +0,0 @@
-# .bash_profile
-
-# Get the aliases and functions
-[ -f $HOME/.bashrc ] && . $HOME/.bashrc
diff --git a/.config/bash/prompt b/.config/bash/prompt
deleted file mode 100644
index f65f096..0000000
--- a/.config/bash/prompt
+++ /dev/null
@@ -1,51 +0,0 @@
-# vim: ft=sh
-
-# get current branch in git repo
-function parse_git_branch() {
-	BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
-	if [ ! "${BRANCH}" == "" ]
-	then
-		STAT=`parse_git_dirty`
-		echo "- [${BRANCH}${STAT}] "
-	else
-		echo ""
-	fi
-}
-
-# get current status of git repo
-function parse_git_dirty {
-	status=`git status 2>&1 | tee`
-	dirty=`echo -n "${status}" 2> /dev/null | grep "modified:" &> /dev/null; echo "$?"`
-	untracked=`echo -n "${status}" 2> /dev/null | grep "Untracked files" &> /dev/null; echo "$?"`
-	ahead=`echo -n "${status}" 2> /dev/null | grep "Your branch is ahead of" &> /dev/null; echo "$?"`
-	newfile=`echo -n "${status}" 2> /dev/null | grep "new file:" &> /dev/null; echo "$?"`
-	renamed=`echo -n "${status}" 2> /dev/null | grep "renamed:" &> /dev/null; echo "$?"`
-	deleted=`echo -n "${status}" 2> /dev/null | grep "deleted:" &> /dev/null; echo "$?"`
-	bits=''
-	if [ "${renamed}" == "0" ]; then
-		bits=">${bits}"
-	fi
-	if [ "${ahead}" == "0" ]; then
-		bits="*${bits}"
-	fi
-	if [ "${newfile}" == "0" ]; then
-		bits="+${bits}"
-	fi
-	if [ "${untracked}" == "0" ]; then
-		bits="?${bits}"
-	fi
-	if [ "${deleted}" == "0" ]; then
-		bits="x${bits}"
-	fi
-	if [ "${dirty}" == "0" ]; then
-		bits="!${bits}"
-	fi
-	if [ ! "${bits}" == "" ]; then
-		echo " ${bits}"
-	else
-		echo ""
-	fi
-}
-
-export PS1="\[\e[34m\]\u\[\e[m\]\[\e[34m\]@\[\e[m\]\[\e[34m\]\h\[\e[m\] \[\e[31m\]\w\[\e[m\] \[\e[35m\]\`parse_git_branch\`\[\e[m\]\[\e[32m\]\\$\[\e[m\] "
-
diff --git a/.config/bash/rc b/.config/bash/rc
deleted file mode 100644
index c47b9ad..0000000
--- a/.config/bash/rc
+++ /dev/null
@@ -1,21 +0,0 @@
-# vim: ft=sh
-
-shopt -s autocd
-shopt -s histappend
-
-bind 'set bell-style visible'
-bind 'set completion-ignore-case on'
-bind 'set expand-tilde on'
-
-export XDG_CONFIG_HOME="$HOME/.config" XDG_CACHE_HOME="$HOME/.cache" XDG_DATA_HOME="$HOME/.local/share" XDG_STATE_HOME="$HOME/.local/state"
-
-export PATH="$PATH:$HOME/.local/bin"
-export EDITOR="nvim" VISUAL="nvim"
-export GNUPGHOME="$XDG_DATA_HOME/gnupg" PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass" HISTFILE="$XDG_STATE_HOME/bash/history" INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
-
-export GPG_TTY=$(tty)
-export AUR_PAGER="nnn"
-
-source "$HOME/.config/bash/aliases"
-source "$HOME/.config/bash/functions"
-source "$HOME/.config/bash/prompt"