From a65108b731e772fadf383158eb44313c7c54787e Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Mon, 2 May 2022 23:02:43 -0600 Subject: idk, did some nvim stuff and xinitrc tweaks --- bash/.bash/01-aliases.bash | 11 +++++++++++ bash/.bash/02-prompt.bash | 7 ++++++- bash/.bash/03-boot.bash | 12 +++++++----- 3 files changed, 24 insertions(+), 6 deletions(-) (limited to 'bash/.bash') diff --git a/bash/.bash/01-aliases.bash b/bash/.bash/01-aliases.bash index 767e425..9ac5f9c 100644 --- a/bash/.bash/01-aliases.bash +++ b/bash/.bash/01-aliases.bash @@ -23,12 +23,14 @@ alias copy='xclip -sel c <' alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' +alias back='cd -' # binary renames alias java='/usr/java/jdk-17.0.1/bin/java' alias java8='/usr/java/jre1.8.0_291/bin/java' alias java12='/usr/java/jdk-12.0.2/bin/java' alias python='python3' +#alias vim='nvim' # quick important file edits alias todo='vim ~/TODO.md' @@ -40,3 +42,12 @@ alias iPhone='cd /home/bryson/Downloads/from-iPhone' alias gs='gs -dNOSAFER' alias django='python manage.py' alias smci='sudo make clean install' +alias smi='sudo make install' + +# bash navigation +alias add-alias='vim ~/.bash/01-aliases.bash; . ~/.bash_profile' + +# other garbage +alias wifi='nmcli d wifi' +#alias connect='nmcli d wifi connect' +#alias listwifi='nmcli d wifi list' diff --git a/bash/.bash/02-prompt.bash b/bash/.bash/02-prompt.bash index 51b7972..45c7821 100644 --- a/bash/.bash/02-prompt.bash +++ b/bash/.bash/02-prompt.bash @@ -94,7 +94,12 @@ function _git_prompt() { # [ bryson@hostname /current/path ] # $ #export _PS1="\[$lgray\][ \[\e[1m$color1\]\u\[$color2\]@\[$color3\]\h \[$color4\]\w \[\e[0m$lgray\]]" -export _PS1="\[\e[$lgray\][ \[$LBLUE\]\u\[$lcyan\]@\[$GREEN\]\h \[$LYELLOW\]\w \[$lgray\]]" +#export _PS1="\[\e[$lgray\][ \[$LBLUE\]\u\[$lcyan\]@\[$GREEN\]\h \[$LYELLOW\]\w \[$lgray\]]" +#export _PS2="\[$dgray\]" + +# [ bryson@hostname path ] +# $ +export _PS1="\[\e[$lgray\][ \[$LBLUE\]\u\[$lcyan\]@\[$GREEN\]\h \[$LYELLOW\]\W \[$lgray\]]" export _PS2="\[$dgray\]" # define x titlebar diff --git a/bash/.bash/03-boot.bash b/bash/.bash/03-boot.bash index 34f1d9c..fd68025 100644 --- a/bash/.bash/03-boot.bash +++ b/bash/.bash/03-boot.bash @@ -9,11 +9,11 @@ if [[ $TERM == 'linux' && $(hostname) == 'dingo' ]]; then cat ~/bin/house.txt printf "\n${CYAN}Welcome back Bryson :)\n\n" - USAGE="${blue}\td:start-docked\n\tn:start-not-docked\n\tq:shutdown\n\tr:reboot\n\tb:bash\n\n${NC}" - printf "${LGREEN}What should dingo do?\n" - printf "%b" $USAGE + printf "${LGREEN}What should dingo do?\n${blue}" + echo -e '\td: start docked\n\tn: start not docked\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n' while read -rs -N 1 key; do + printf "${NC}" case $key in d) startx ;; n) nstartx.sh ;; @@ -21,11 +21,13 @@ if [[ $TERM == 'linux' && $(hostname) == 'dingo' ]]; then read -rs -N 1 key2; case $key2 in y) shutdown now ;; esac; ;; r) echo "Are you sure you want to reboot? (y/n)"; read -rs -N 1 key3; case $key3 in y) reboot ;; esac; ;; + l) logout ;; b) break ;; [h?]) echo "$USAGE";; esac - printf "${LGREEN}What should dingo do now?\n" - printf "%b" $USAGE + clear + printf "\n${red}Please try again...${NC}\n\n${LGREEN}What should dingo do now?\n${blue}" + echo -e '\td: start docked\n\tn: start not docked\n\tq: shutdown\n\tr: reboot\n\tl: logout\n\tb: bash\n\n' done fi -- cgit v1.2.3