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.

35 lines
1.3 KiB
Cheetah

# chezmoi:template:left-delimiter=#{{
#{{- /* vim: set filetype=sh: */ -}}
2 years ago
alias ll='ls -alF'
alias curl='curl --proto-default https --silent '
alias to_lower="tr '[:upper:]' '[:lower:]'"
alias to_upper="tr '[:lower:]' '[:upper:]'"
2 years ago
alias node_lts="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep -v '-' | head -n 2 | tail -n 1 | cut -f 1"
alias node_current="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep '-' | head -n 1 | cut -f 1"
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) '
#{{ if and (lookPath "jq") (lookPath "prettier") (lookPath "bat") -}}
2 years ago
alias pretty_json='jq --compact-output | prettier --parser json | bat --language json'
#{{- end }}
2 years ago
#{{ if eq .chezmoi.os "linux" -}}
2 years ago
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
#{{- end }}
2 years ago
#{{ if lookPath "bat" -}}
2 years ago
alias batdiff='batdiff --pager=""'
alias cat='bat --paging=never'
#{{- end }}