1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

switch-theme.sh: vim typos removed

This commit is contained in:
luke bonham 2015-02-01 12:01:29 +01:00
parent aed5810f60
commit 2e547e836d

View file

@ -1,12 +1,10 @@
#! /usr/bin/make -f
# Awesome Copycats switch theme script
#
# It also updates to latest commit and
# backups previous rc.lua.
#
# It also updates to latest commit.
# Dependencies: make, git
DESTDIR=~/.config/awesome
PROJECT=copycat-killer/awesome-copycats
@ -16,9 +14,7 @@ define swap_dialog
echo "see https://github.com/$(PROJECT)" ; \
echo ; $(themes) | cat -n ; echo ; \
typeset -i num; \
:
:x
:x
read -p "Switch to theme: " num ; \
if [ ! -z $${num} -a $${num} -ge 1 -a -le $${n_themes} ] ; then \
NEW_THEME=$$($(themes) | head -n$${num} | tail -n1 ) ; \
mv --backup=numbered rc.lua rc.lua.previous ; \