# vi:syntax=sh # connect to wireless: alias egrep='egrep --color=auto' alias tmux="tmux -2" alias v="vim " #alias v="vim " alias dmenu="dmenu_run " #alias thunar="pcmanfm-qt" #alias mpv="mpv --hwdec=vaapi -v " alias python="python3" # I like feedback alias cp='cp -v' alias mv='mv -v' # i like ls alias ls='ls --color -h --group-directories-first' alias ll='ls -lh --group-directories-first ' alias lt='ls -lt ' alias lsh='ls -lh' alias la='ls -lah --group-directories-first' alias count='ls -l | wc -l' alias sizes=' du --summarize --human-readable *' alias t='tre -l 1' # calendars # year view wired alias kwy="khal list -a Wired today 365d" alias kww="khal list -a Wired today 7d" # journals (https://jrnl.sh/en/stable/) alias j="jrnl" alias jl="jrnl -j log" #search jrnl alias js="jrnl -r -s" alias jw="jrnl -j wired" #pull all urls out of wired jrnl alias jwl="j -j wired --short | urlscan" #search wired jrnl alias jws="jrnl -j wired -r -s" # cd alias ...='cd ../../../' alias ....='cd ../../../../' alias .....='cd ../../../../' # arch alias pac="sudo pacman" alias fdisk="sudo fdisk" alias arch="~/./bin/arch.sh" # debian alias ai="sudo apt-get install" alias acs="sudo apt-cache search" alias apt-get="sudo apt-get" #Tmux aliases alias mopen='tmux attach-session -t' alias mnew='tmux new -s' #Git aliases alias g="git " alias gs="git status" alias gc="git commit -S " alias gl="git log" alias gp="git pull" alias ga="git add" alias gm="git mv" alias gaa="git annex add" alias gafk="git annex fsck -q" alias gas="git annex sync" #apps alias music='ncmpcpp' alias write='countdown $((60*20))' #alias lf=lfrun # rename files etc alias reraw="~/./bin/rename_raw_files.sh" alias regoproraw="~/./bin/rename_gopro_raw.sh" alias remts="~/./bin/rename_mts_files.sh" alias remp4="~/./bin/rename_mp4_files.sh" alias mtsconvert="~/./bin/mts-convert.sh" alias findname='find . -name $1' # convert GPR to DNG alias gprtodng="~/./bin/gprtodng.sh" #Django web dev alias virt='source venv/bin/activate' alias serve='python -m http.server' alias servenet="python -c 'import BaseHTTPServer as bhs, SimpleHTTPServer as shs; bhs.HTTPServer(('\''192.168.1.10'\'', 8080), shs.SimpleHTTPRequestHandler).serve_forever()'" # download audio alias yt-audio='youtube-dl --no-check-certificate --ignore-errors --output "%(title)s.%(ext)s" --extract-audio --audio-format mp3' alias @less="fc -s | less" alias @s="cd ~/writing/scratch/ && vim scratch.txt" # list TODO/FIX lines from the current project alias todos="ack -n --nogroup '(TODO|FIX(ME)?):'" ############### # GTD helpers # ############### # Generic #alias @td="clear && rg --files ~/notes/gtd/ | rg qq | cut -c 24-" alias @pj="clear && rg --files ~/notes/gtd/ | rg proj | cut -c 26-" alias @e="vim $HOME/notes/@errands.txt" alias @i="vim $HOME/notes/@inbox.txt" # open and close encrypted volume: alias closevault="cd && cd ~/documents && tar cz vault/ -f vault.tar && gpg -c vault.tar && rm vault.tar && rm -rf vault && cd" alias openvault="cd && cd ~/documents && gpg vault.tar.gpg && tar -xzf vault.tar && rm vault.tar.gpg && rm -rf vault.tar && cd vault" # strip spaces in file names alias stripspaces='for f in *\ *; do mv "$f" "${f// /_}"; done' alias moon='python bin/moonphase.py' alias watchtraffic="nload wlp3s0" alias mt="vnstat -m" alias mntHFS="sudo mount -t hfsplus -o force,rw" # get battery info: alias charge='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "time to empty|percentage"' alias gpphoto="~/./bin/download-photos-gopro.py /mnt/card/DCIM/100GOPRO/" alias gpvid="~/./bin/download-videos-gopro.py /mnt/card/DCIM/100GOPRO/" alias dng="WINEPREFIX='$HOME/wine-dng' wine '$HOME/wine-dng/drive_c/Program Files/Adobe/Adobe DNG Converter/Adobe DNG Converter.exe'" alias bookwright="NEPREFIX='$HOME/.wine-bookwright' wine '$HOME/.wine-bookwright/drive_c/Program Files/BookWright/BookWright.exe'"