summaryrefslogtreecommitdiff
path: root/posix-shell/aliases.sh
blob: 7d37e854813314d1cb93bc8bcda538b35e070259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh


alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ip='ip --color=auto'
alias gitstat='git status'
alias igit='git log --oneline --decorate --graph'
alias horizons='telnet horizons.jpl.nasa.gov 6775'  # a NASA server providing data about planet positions and velocities
alias wlrecord='wf-recorder -a -g "$(slurp)"'
alias ranger='ranger --choosedir=$HOME/.local/share/ranger/lastdir && cd "$(cat $HOME/.local/share/ranger/lastdir)"'
alias lf='lf -last-dir-path=$HOME/.local/share/lf/lastdir && cd "$(cat $HOME/.local/share/lf/lastdir)"'
alias music="cd ~/music && ranger || echo '~/music does not exist'"
alias bt="bluetoothctl"
alias note='"${EDITOR}" "$(mktemp)"'
alias nolink='cd $(pwd -P)'
alias zephyr='export ZEPHYR_BASE="${HOME}/zephyrproject/zephyr" && source "${HOME}/zephyrproject/.venv/bin/activate"'
alias myrename="perl-rename 's/[^a-zA-Z0-9äöüÄÖÜß\.\/]+/-/g; s/^-+|-+$//g; \$_ = lc(\$_)'"
alias aerc="mbsync -a && aerc"