about summary refs log tree commit diff stats
path: root/dot_config/bash
diff options
context:
space:
mode:
authorVitor Gonçalves <vitorg@tilde.team>2023-12-04 03:04:27 -0300
committerVitor Gonçalves <vitorg@tilde.team>2023-12-04 03:04:27 -0300
commit959f43ea74e1c9a92a07697c5cd8e5cd1d4d1bac (patch)
tree493894f6684bdd5443e8afc9a2fad4bfcd244769 /dot_config/bash
parent8ccd55d605476824ba8ebd8354d23b54e31623b0 (diff)
downloaddots-959f43ea74e1c9a92a07697c5cd8e5cd1d4d1bac.tar.gz
restarting from scratch
Diffstat (limited to 'dot_config/bash')
-rw-r--r--dot_config/bash/aliases18
-rw-r--r--dot_config/bash/functions13
-rw-r--r--dot_config/bash/prompt51
-rw-r--r--dot_config/bash/rc13
4 files changed, 0 insertions, 95 deletions
diff --git a/dot_config/bash/aliases b/dot_config/bash/aliases
deleted file mode 100644
index 86a4872..0000000
--- a/dot_config/bash/aliases
+++ /dev/null
@@ -1,18 +0,0 @@
-# vim: ft=sh
-
-alias ls="exa -laH --group-directories-first"
-alias la="exa -aH --group-directories-first"
-alias l="exa -H --group-directories-first"
-
-alias c="chezmoi"
-alias ce="chezmoi edit"
-alias ca="chezmoi apply"
-alias ccd="cd ~/.local/share/chezmoi"
-
-# git aliases
-alias g="git"
-alias gs="git status"
-alias gc="git commit"
-alias gd="git diff"
-
-alias monerod="monerod --data-dir "$XDG_DATA_HOME"/bitmonero"
diff --git a/dot_config/bash/functions b/dot_config/bash/functions
deleted file mode 100644
index 2835c92..0000000
--- a/dot_config/bash/functions
+++ /dev/null
@@ -1,13 +0,0 @@
-# vim: ft=sh
-
-wbp() {
-    blogdir="$HOME/docs/src/web/blog"
-
-    read -rp "What is your title? " title
-
-    path="$blogdir/content/$(date '+%Y-%m-%d')-${title,,}.md"
-    path=${path// /-}
-
-    "$EDITOR" "$path"
-    printf "Your blogpost is saved at %s\n" "$path"
-}
diff --git a/dot_config/bash/prompt b/dot_config/bash/prompt
deleted file mode 100644
index f65f096..0000000
--- a/dot_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/dot_config/bash/rc b/dot_config/bash/rc
deleted file mode 100644
index f8f7b01..0000000
--- a/dot_config/bash/rc
+++ /dev/null
@@ -1,13 +0,0 @@
-# vim: ft=sh
-
-shopt -s autocd
-shopt -s histappend
-
-# pinentry and stuff
-export GPG_TTY=$(tty)
-
-export EDITOR="nvim" VISUAL="nvim"
-
-source "$HOME/.config/bash/aliases"
-source "$HOME/.config/bash/functions"
-source "$HOME/.config/bash/prompt"