aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux-desktop
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-02-02 05:55:28 -0700
committerkatherine <shmibs@shmibbles.me>2016-02-02 05:55:28 -0700
commit2ece2a2987dcbb28283f2337c466f755cdb9c007 (patch)
tree93fcd74f106b3b0c083fb13e53d512e34aca75d8 /.zshrc-linux-desktop
parent8262c40af6678c9737c1c3874c8f813597c0395a (diff)
downloaddotfiles-2ece2a2987dcbb28283f2337c466f755cdb9c007.tar.gz
local function variables
i feel dumb
Diffstat (limited to '.zshrc-linux-desktop')
-rw-r--r--.zshrc-linux-desktop15
1 files changed, 12 insertions, 3 deletions
diff --git a/.zshrc-linux-desktop b/.zshrc-linux-desktop
index f52a02d..b85fab0 100644
--- a/.zshrc-linux-desktop
+++ b/.zshrc-linux-desktop
@@ -19,6 +19,7 @@ mpd-sleep() {
# leaks memory for some reason, so don't run on a clean library
# or it'll crash everything
mpd-cover-convert() {
+ local d
find ~/music -type f -regextype posix-extended -regex ".*cover\.(png|jpg)"\
| while read file; do
d=$(dirname "$file")
@@ -142,6 +143,8 @@ scap() {
# quickly send a file to hosted tmp dir
send() {
+ local name
+ local basename
if [[ "$1" ]]; then
scp $@ shmibbles.me:http/tmp/
if [[ $? -eq 0 ]]; then
@@ -164,6 +167,7 @@ send() {
ssh-scrot() {
archey3
+ local name
if [[ "$1" != "" ]]; then
name=$1
else
@@ -171,9 +175,9 @@ ssh-scrot() {
read name
fi
- date=$(date +'%Y-%m-%d')
+ local date=$(date +'%Y-%m-%d')
- folder="http/img/scrot"
+ local folder="http/img/scrot"
ssh shmibbles.me "mkdir -p $folder/$date"
if [[ "${?#0}" != "" ]]; then
@@ -221,12 +225,14 @@ make-gif() {
ln -s "$1" make-gif-in
+ local start
echo -n "start [00:00:00]: "
read start
if [[ -z "$start" ]]; then
start="00:00:00"
fi
+ local length
echo -n "length [full]: "
read length
if [[ -z "$length" ]]; then
@@ -236,18 +242,21 @@ make-gif() {
t="-t"
fi
+ local fps
echo -n "fps [10]: "
read fps
if [[ -z "$fps" ]]; then
fps="10"
fi
+ local width
echo -n "width [480]: "
read width
if [[ -z "$width" ]]; then
width="480"
fi
+ local subs
echo -n "use subtitles? [y/N]: "
read subs
if [[ "$subs" == "y" || "$subs" == "Y" ]]; then
@@ -277,7 +286,7 @@ make-gif() {
# um...
fuck() {
- fuck="fuck"
+ local fuck="fuck"
while true; do
echo -en "\e[$((RANDOM%2));$((RANDOM%8+30))m"