refactor bashrc's to bash folder and vimrc's to vim folder
This commit is contained in:
2
bash/fun
2
bash/fun
@ -17,4 +17,4 @@ function pika {
|
||||
imgcat $IMAGE
|
||||
echo;
|
||||
}
|
||||
alias pikabox='while true; do clear; pika; sleep 120; done'
|
||||
alias pikabox='while true; do reset; pika; sleep 120; done'
|
||||
|
@ -1,12 +1,13 @@
|
||||
#!/bin/bash
|
||||
function planktimer() {
|
||||
# dependencies: 'say' 'termdown'
|
||||
message='Push-up Time'
|
||||
while true;
|
||||
do
|
||||
termdown 1h30m;
|
||||
clear;
|
||||
figlet "Plank Time" | lolcat;
|
||||
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "plank time";
|
||||
figlet "$message" | lolcat;
|
||||
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "$message";
|
||||
read -n 1;
|
||||
if [ $1 ]; then
|
||||
termdown $1;
|
||||
|
38
bash/rc
Normal file
38
bash/rc
Normal file
@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
DOTWRYN="$HOME/.wryn"
|
||||
RC_DIR="$DOTWRYN/bash"
|
||||
|
||||
# source .wryn/bash files
|
||||
for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done;
|
||||
|
||||
# osx
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
for file in $(find $RC_DIR/osx -type f); do source $file; done;
|
||||
fi
|
||||
|
||||
# linux
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
for file in $(find $RC_DIR/linux -type f); do source $file; done;
|
||||
fi
|
||||
|
||||
# --- ViM as default editor -----------------------------------
|
||||
export EDITOR='vim'
|
||||
export VISUAL='vim'
|
||||
|
||||
# --- Welcome message -----------------------------------------
|
||||
exec figlet "Welcome, beautiful" | lolcat; echo; cowsay -p "damn u sexy" | lolcat;
|
||||
|
||||
alias restart='clear; source ~/.bashrc; echo'
|
||||
|
||||
# --- !@#$ Aliases --------------------------------------------
|
||||
alias clera='clear';
|
||||
alias sl='sl -alF | lolcat';
|
||||
|
||||
|
||||
# --- BASH RC DEPENDENCIES ------------------------------------
|
||||
# sl
|
||||
# lolcat
|
||||
# figlet
|
||||
# fortune
|
||||
# vim
|
||||
# cowsay
|
@ -45,14 +45,14 @@ function rntbranchcleanup() {
|
||||
for dir in $(ls $RD_PATH); do
|
||||
rnt $dir >/dev/null 2>/dev/null;
|
||||
if [ -d .git ]; then
|
||||
printf "clearing repository $dir...";
|
||||
printf " - %s\e[1;34m %s\e[0m..." "clearing repository" "$dir";
|
||||
git branch -d $(git branch | sed -E "/develop|master|\*/d") >/dev/null 2>/dev/null;
|
||||
printf "done!\n";
|
||||
printf "\e[1;32m%s\e[0m\n" " DONE";
|
||||
else
|
||||
echo $dir is not a git repository;
|
||||
printf " - \e[1;34m%s\e[1;31m %s\e[0m" "$dir" "is not a git repository";
|
||||
fi
|
||||
rnt;
|
||||
done;
|
||||
echo && echo RentDynamics repository branches all clean!
|
||||
printf "\n\n\e[1;36m%s\e[1;35m %s\e[0m\n\n" "RentDynamics" "repository branches all clean!";
|
||||
}
|
||||
|
||||
|
@ -9,3 +9,8 @@ function notes() { NOTE="$NOTE_PATH/$1$NOTE_EXTENSION"; [ $1 ] && [ -f $NOTE ] &
|
||||
|
||||
# --- GIT -----------------------------------------------------
|
||||
alias gitbranchcleanup='git branch -d $(git branch | sed -E "/develop|master|\*/d")'
|
||||
|
||||
|
||||
alias pd='pushd';
|
||||
alias qd='popd';
|
||||
alias ds='dirs';
|
||||
|
Reference in New Issue
Block a user