this repo has no description
dotfiles

[zsh] Remove more unused parts

sharparam.com 30824b76 fd04c025

verified
-25
-25
zsh/.zshrc
··· 119 119 eval "$(atuin init zsh)" 120 120 fi 121 121 122 - if [[ -d "/usr/share/perl6/" ]]; then 123 - path=(/usr/share/perl6/vendor/bin /usr/share/perl6/site/bin $path) 124 - fi 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 - cowfortune() { 275 - cowargs=('-b' '-d' '-g' '-p' '-s' '-t' '-w' '-y' '') 276 - cowextra=${cowargs[$(($RANDOM % ${#cowargs[@]}))]} 277 - files=($(cowsay -l | tail -n +2)) 278 - cowfile=${files[$((RANDOM % ${#files[@]} + 1))]} 279 - fortune $@ | cowsay -W 70 -f ${cowfile} ${cowextra} 280 - } 281 - 282 - thinkfortune () { 283 - fortune $@ | cowthink -W 70 -f bong -s 284 - } 285 - 286 - scrotclip() { 287 - scrot $@ /tmp/scrotclip.png -e 'xclip -se c -t image/png -i $f && rm $f' 288 - } 289 - 290 270 pj() { 291 271 pushd "$(j -e $@)" 292 272 } 293 - 294 - term_name=$(basename "$(ps -p $(ps -p $$ -o ppid=) -o args=)") 295 - if [[ "$term_name" != "yakuake" && $+commands[cowsay] -eq 1 && $+commands[fortune] -eq 1 && ! $ASCIINEMA_REC && -z "$TMUX" ]]; then 296 - cowfortune 297 - fi