personal dotfiles: my Hyprland config
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc43
1 files changed, 43 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..970afa3
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,43 @@
+# If not running interactively, don't do anything
+case $- in
+*i*) ;;
+*) return ;;
+esac
+
+if [ -z "$HOST" ] ; then
+ export HOST=${HOSTNAME}
+fi
+
+xtitle ()
+{
+ echo -n -e "\033]0;$*\007"
+}
+
+cd()
+{
+ builtin cd "$@" && xtitle "$(basename $PWD)"
+}
+
+export HISTSIZE=10000
+
+# BCP prompt.
+parse_git_branch() {
+ git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/🌱 \1/'
+}
+export PS1="[\t \[\e[0;33m\]\w\[\e[0;35m\]\[\e[0;32m\]\$(parse_git_branch)\[\e[0;35m\]\[\033[00m\]] "
+
+mggrep () { TT micro $(git grep -n "$@" | cut -d: -f1,2 | head -n 50); };
+
+mfi () {
+ trimmed=$(echo "$@" | xargs -n1 | sed 's/:.*//g')
+ # TODO: Include the numbers
+ TT micro $(echo "$trimmed" | xargs -n1 find . -not -path './vendor/*' -name | head -n 50);
+};
+
+source ~/.bash_aliases
+
+eval $(thefuck --alias frick)
+
+eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
+export PATH="/home/zachariahdecook/.local/bin:$PATH"
+export EDITOR=micro