configs  Check-in [43176e075c]

Overview
Comment:Use gzcat instead of zcat, remove .desktop/.app.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 43176e075c6347c42d44964edb783277647a11cf2dfe3ae2e967eaff5a245a0b
User & Date: js 2013-07-14 23:48:43
Context
2013-07-30
23:30
Add tmux.conf. check-in: 4f3ce70349 user: js tags: trunk
2013-07-14
23:48
Use gzcat instead of zcat, remove .desktop/.app. check-in: 43176e075c user: js tags: trunk
2012-12-17
20:22
Add LS_COLORS. check-in: fd67ad2ef5 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to zshrc.

134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
			*.tar)
				tar xfv $i
				;;
			*.tbz | *.tbz2 | *.tar.bz2)
				bzcat $i | tar xfv -
				;;
			*.tgz | *.tar.gz)
				zcat $i | tar xfv -
				;;
			*.txz | *.tar.xz)
				xzcat $i | tar xfv -
				;;
			*.rar)
				unrar x $i
				;;







|







134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
			*.tar)
				tar xfv $i
				;;
			*.tbz | *.tbz2 | *.tar.bz2)
				bzcat $i | tar xfv -
				;;
			*.tgz | *.tar.gz)
				gzcat $i | tar xfv -
				;;
			*.txz | *.tar.xz)
				xzcat $i | tar xfv -
				;;
			*.rar)
				unrar x $i
				;;
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
				echo "$i: Unknown file type"
				false
				;;
		esac
	done
}

run_desktop()
{
	for i in $@; do
		$(grep -i "^exec=" $i | sed "s/^exec=//i")
	done
}

sprunge() {
	curl -F "sprunge=<-" http://sprunge.us
}

for ext in $ARCHIVE_FORMATS; do alias -s $ext=extr; done

[ "$AUDIO_PLAYER" ] && \
	for ext in $AUDIO_PLAYER_FORMATS; do alias -s $ext=$AUDIO_PLAYER; done

[ "$VIDEO_PLAYER" ] && \
	for ext in $VIDEO_PLAYER_FORMATS; do alias -s $ext=$VIDEO_PLAYER; done

alias -s desktop=run_desktop
alias -s app=open

[ "$LS_ON_INIT" = "yes" ] && ls

unset AUDIO_PLAYER VIDEO_PLAYER
unset ARCHIVE_FORMATS AUDIO_PLAYER_FORMATS VIDEO_PLAYER_FORMATS
unset FGREP GREP GREP_COLOUR LS LS_COLOUR LS_ON_CD LS_ON_INIT
export LS_COLORS







<
<
<
<
<
<
<












<
<
<






163
164
165
166
167
168
169







170
171
172
173
174
175
176
177
178
179
180
181



182
183
184
185
186
187
				echo "$i: Unknown file type"
				false
				;;
		esac
	done
}








sprunge() {
	curl -F "sprunge=<-" http://sprunge.us
}

for ext in $ARCHIVE_FORMATS; do alias -s $ext=extr; done

[ "$AUDIO_PLAYER" ] && \
	for ext in $AUDIO_PLAYER_FORMATS; do alias -s $ext=$AUDIO_PLAYER; done

[ "$VIDEO_PLAYER" ] && \
	for ext in $VIDEO_PLAYER_FORMATS; do alias -s $ext=$VIDEO_PLAYER; done




[ "$LS_ON_INIT" = "yes" ] && ls

unset AUDIO_PLAYER VIDEO_PLAYER
unset ARCHIVE_FORMATS AUDIO_PLAYER_FORMATS VIDEO_PLAYER_FORMATS
unset FGREP GREP GREP_COLOUR LS LS_COLOUR LS_ON_CD LS_ON_INIT
export LS_COLORS