Updating and moving repo.
This commit is contained in:
@@ -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$//'\'')"'
|
||||
|
||||
20
.bashrc
20
.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
|
||||
|
||||
Reference in New Issue
Block a user