You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
Cheetah
39 lines
1.1 KiB
Cheetah
4 years ago
|
#!/usr/bin/env bash
|
||
4 years ago
|
alias ll='ls -alF'
|
||
|
alias curl='curl --proto-default https --silent '
|
||
3 years ago
|
alias to_lower="tr '[:upper:]' '[:lower:]'"
|
||
|
alias to_upper="tr '[:lower:]' '[:upper:]'"
|
||
4 years ago
|
|
||
|
alias 644='chmod 644'
|
||
|
alias 755='chmod 755'
|
||
|
alias 600='chmod 600'
|
||
|
alias 700='chmod 700'
|
||
|
alias +x='chmod +x'
|
||
|
|
||
|
alias rsync-win='rsync --recursive --verbose --times --modify-window=1 '
|
||
|
alias simple-http-server='python3 -m http.server'
|
||
|
alias wget-opendir='wget --recursive --level 0 --continue --no-clobber \
|
||
|
--no-parent --execute robots=off --random-wait --limit-rate=800k \
|
||
|
--reject=html,htm,index'
|
||
|
|
||
|
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
||
|
alias take='sudo chown $(whoami):$(whoami) '
|
||
2 years ago
|
|
||
|
{{ if and (lookPath "jq") (lookPath "prettier") (lookPath "bat") -}}
|
||
3 years ago
|
alias pretty_json='jq --compact-output | prettier --parser json | bat --language json'
|
||
2 years ago
|
{{- end }}
|
||
|
|
||
|
{{ if eq .chezmoi.os "linux" -}}
|
||
|
alias ls='ls --color=auto'
|
||
|
alias grep='grep --color=auto'
|
||
|
alias fgrep='fgrep --color=auto'
|
||
|
alias egrep='egrep --color=auto'
|
||
|
{{- end }}
|
||
|
|
||
|
{{ if lookPath "bat" -}}
|
||
|
alias batdiff='batdiff --pager=""'
|
||
|
alias cat=bat
|
||
|
{{- end }}
|
||
12 years ago
|
|
||
2 years ago
|
# vim: filetype=bash
|