tangled
alpha
login
or
join now
sharparam.com
/
dotfiles
0
fork
atom
this repo has no description
dotfiles
0
fork
atom
overview
issues
pulls
pipelines
[zsh] Remove more unused parts
sharparam.com
3 weeks ago
30824b76
fd04c025
verified
This commit was signed with the committer's
known signature
.
sharparam.com
SSH Key Fingerprint:
SHA256:ovycjIBhBAebccGBKsv/qU55pv3EyICepNWb1VhblYk=
-25
1 changed file
expand all
collapse all
unified
split
zsh
.zshrc
-25
zsh/.zshrc
···
119
119
eval "$(atuin init zsh)"
120
120
fi
121
121
122
122
-
if [[ -d "/usr/share/perl6/" ]]; then
123
123
-
path=(/usr/share/perl6/vendor/bin /usr/share/perl6/site/bin $path)
124
124
-
fi
125
125
-
126
122
if [[ -d "$HOME/.dotnet/tools" ]]; then
127
123
path=($HOME/.dotnet/tools $path)
128
124
fi
···
271
267
fi
272
268
}
273
269
274
274
-
cowfortune() {
275
275
-
cowargs=('-b' '-d' '-g' '-p' '-s' '-t' '-w' '-y' '')
276
276
-
cowextra=${cowargs[$(($RANDOM % ${#cowargs[@]}))]}
277
277
-
files=($(cowsay -l | tail -n +2))
278
278
-
cowfile=${files[$((RANDOM % ${#files[@]} + 1))]}
279
279
-
fortune $@ | cowsay -W 70 -f ${cowfile} ${cowextra}
280
280
-
}
281
281
-
282
282
-
thinkfortune () {
283
283
-
fortune $@ | cowthink -W 70 -f bong -s
284
284
-
}
285
285
-
286
286
-
scrotclip() {
287
287
-
scrot $@ /tmp/scrotclip.png -e 'xclip -se c -t image/png -i $f && rm $f'
288
288
-
}
289
289
-
290
270
pj() {
291
271
pushd "$(j -e $@)"
292
272
}
293
293
-
294
294
-
term_name=$(basename "$(ps -p $(ps -p $$ -o ppid=) -o args=)")
295
295
-
if [[ "$term_name" != "yakuake" && $+commands[cowsay] -eq 1 && $+commands[fortune] -eq 1 && ! $ASCIINEMA_REC && -z "$TMUX" ]]; then
296
296
-
cowfortune
297
297
-
fi