From d3d2a42058a1be13f35a7c4aad0b832fcff38cf0 Mon Sep 17 00:00:00 2001
From: xengineering <me@xengineering.eu>
Date: Tue, 26 Apr 2022 21:44:19 +0200
Subject: Clean up .bashrc

---
 .bashrc | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/.bashrc b/.bashrc
index 20c180e..132f8d2 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,41 +1,35 @@
-#
-# ~/.bashrc
-#
-
-# vim: shiftwidth=4 tabstop=4 expandtab
+# vim: shiftwidth=4 tabstop=4 noexpandtab
 
 
 # If not running interactively, don't do anything
 [[ $- != *i* ]] && return
 
+
+# variables
+GOPATH=$HOME/go
+export EDITOR=vim
+
+
+# alias definitions
 alias ls='ls --color=auto'
 alias ll='ls -alF'
 alias la='ls -A'
 alias l='ls -CF'
+alias ip='ip --color=auto'
 alias dotfiles='/usr/bin/git --git-dir=$HOME/dotfiles.git/ --work-tree=$HOME'
-alias scripts='/usr/bin/git --git-dir=$HOME/scripts.git/ --work-tree=$HOME/bin/'
-alias commit='git commit'
 alias gitstat='git status'
-alias ip='ip --color=auto'
-function my_xdg_open() { nohup xdg-open "$1" > /dev/null 2>&1 & }
-alias open=my_xdg_open
-alias jupy='jupyter notebook'
-alias mygpg='gpg --list-secret-keys --fingerprint --fingerprint'
+alias igit='git log --all --oneline --decorate --graph'
 alias horizons='telnet horizons.jpl.nasa.gov 6775'  # a NASA server providing data about planet positions and velocities
-alias today='date +"%Y-%m-%d"'
 alias wlrecord='wf-recorder -a -g "$(slurp)"'
-alias igit='git log --all --oneline --decorate --graph'
 alias ranger='ranger --choosedir=$HOME/.local/share/ranger/lastdir && cd "$(cat $HOME/.local/share/ranger/lastdir)"'
 alias music="cd ~/Musik && ranger || echo '~/Musik does not exist'"
 
-GOPATH=$HOME/go
 
 # extend PATH with my personal and public scripts (location based on XDG)
 # https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
 PATH=$PATH:~/.local/bin/personal
 PATH=$PATH:~/.local/bin/public
 
-export EDITOR=vim
 
 parse_git_branch() {
      git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
@@ -57,6 +51,8 @@ rand_util() {
     pacman -Ql coreutils | grep bin | awk '{print $2}' | sed '/^.*\/$/d' | shuf -n 1 - | xargs man
 }
 
+
+# set prompt
 PS1='[\e[31m$(get_nonzero_retcode)\e[0m\e[32;1m$(date +"%H:%M:%S")\e[0m \e[35;1m\u@\h\e[0m\e[33;1m$(parse_git_branch)\e[0m \e[36;1m\W\e[0m]
 $ '
 
-- 
cgit v1.2.3-70-g09d2