Play around with starship and git deltas and shit

This commit is contained in:
Maximilian Friedersdorff 2024-12-02 14:31:02 +00:00
parent 911dd07d1e
commit e6f37e50ad
4 changed files with 187 additions and 17 deletions

View file

@ -7,16 +7,6 @@ if [ -x /usr/bin/dircolors ]; then
alias egrep='egrep --color=auto'
fi
function la {
ls_out=$(\ls -lah --color=always "$@")
let "allowed_lines = $(tput lines) - 3"
if [ $(echo "$ls_out" | wc -l) -le $allowed_lines ]; then
echo "$ls_out"
else
echo "$ls_out" | less -r
fi
}
function search() {
quoted=$(python -c "import urllib.parse, sys; print(urllib.parse.quote_plus(' '.join(sys.argv[1:])))" "${@}")
w3m "https://duckduckgo.com/?q=${quoted}"
@ -26,4 +16,6 @@ alias black='black --line-length 99'
alias cdtmp='cd $(mktemp -d)'
alias la="ls -lah --color=always | less"
alias g='git'