From 2a6b42c411d8b27a203b6383f9f0445c64f50f1b Mon Sep 17 00:00:00 2001 From: Shaun Setlock Date: Mon, 3 Jan 2022 22:00:26 -0500 Subject: [PATCH] Updating and moving repo. --- .bash_aliases | 3 +-- .bashrc | 20 +++++++++++++++----- .nanorc | 2 ++ 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .nanorc diff --git a/.bash_aliases b/.bash_aliases index 77b30fc..2c0ea21 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -3,8 +3,7 @@ alias server_syncthing_webui="ssh -L 9000:127.0.0.1:8384 shaun@SETLOCK-SERVER" alias git-auto-push-master="git add -A && git commit -m \"Automatic commit performed through alias...\" && git pull origin master && git push origin master" alias git-add-commit="git add -A && git commit -m \"Automatic commit performed through alias...\"" alias airpods="bluetoothctl connect B8:B2:F8:29:11:CD" -alias activate_venv="source venv/bin/activate" -alias bpytop="python3 /opt/bpytop" +#alias bpytop="python3 /opt/bpytop" # Tpyical Stuff 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$//'\'')"' diff --git a/.bashrc b/.bashrc index ff82146..08b796c 100755 --- a/.bashrc +++ b/.bashrc @@ -30,6 +30,16 @@ shopt -s checkwinsize # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# Powerline configuration +if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then + powerline-daemon -q + POWERLINE_BASH_CONTINUATION=1 + POWERLINE_BASH_SELECT=1 + source /usr/share/powerline/bindings/bash/powerline.sh +fi + + # 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) @@ -40,15 +50,15 @@ case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac -# include the git branch in the prompt -git_branch() { - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' -} +## include the git branch in the prompt +#git_branch() { +# git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' +#} # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt -#force_color_prompt=yes +force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then diff --git a/.nanorc b/.nanorc new file mode 100644 index 0000000..e9ab556 --- /dev/null +++ b/.nanorc @@ -0,0 +1,2 @@ +set tabsize 4 +set tabstospaces