Updated file-structure and transfered data out of local bashrc
This commit is contained in:
36
bash/osx/color-ls.rc
Normal file
36
bash/osx/color-ls.rc
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Colors are organized into (Foreground)(Background) bits as seen below:
|
||||
# ========
|
||||
# 1 - Directory
|
||||
# 2 - Symbolic link
|
||||
# 3 - Socket
|
||||
# 4 - Pipe
|
||||
# 5 - Executable
|
||||
# 6 - Block special
|
||||
# 7 - Character special
|
||||
# 8 - Executable with setgid bit set
|
||||
# 9 - Executable with setgid bit set
|
||||
# 10- Directory writable to others, with sticky bit
|
||||
# 11- Directory writable to others, without sticky bit
|
||||
# ========
|
||||
# a black
|
||||
# b red
|
||||
# c green
|
||||
# d brown
|
||||
# e blue
|
||||
# f magenta
|
||||
# g cyan
|
||||
# h light grey
|
||||
# CAPITAL (BOLD)
|
||||
# x default
|
||||
|
||||
# actual colorscheme
|
||||
export LSCOLORS="ExxxxxDxBxxxxxxxxxxxxx"
|
||||
|
||||
# for OSX, fixes spacing issues
|
||||
f_notabs=0
|
||||
|
||||
# default ls to use defined colorscheme
|
||||
alias ls='ls -G'
|
||||
|
||||
|
14
bash/osx/fun.rc
Normal file
14
bash/osx/fun.rc
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
function planktimer() {
|
||||
# dependencies: 'say' 'termdown'
|
||||
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";
|
||||
read -n 1;
|
||||
termdown 65;
|
||||
say -v $(say -v ? | sed -n "/en_/p" | sed "s/ .*//" | shuf -n 1) "done";
|
||||
done
|
||||
}
|
Reference in New Issue
Block a user