diff options
author | luxagraf <sng@luxagraf.net> | 2020-02-16 13:23:56 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-02-16 13:23:56 -0500 |
commit | cd507c92f617d4a8a3f7bb0b43e425491ef7184d (patch) | |
tree | 42144ef0f35b91e7955f570c5ecc4bcec3c4d780 /.aliases |
initial commit of dotfiles
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/.aliases b/.aliases new file mode 100644 index 0000000..9bab34c --- /dev/null +++ b/.aliases @@ -0,0 +1,96 @@ +# vi:syntax=sh + +alias egrep='egrep --color=auto' +alias tmux="tmux -2" +alias v="nvim " +#alias vim="nvim " +alias dmenu="dmenu_run " + +# 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 -l' +alias lsh='ls -lh' +alias la='ls -lah' +alias count='ls -l | wc -l' +alias sizes=' du --summarize --human-readable *' + +# 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 gs="git status" +alias ga="git add" +alias gc="git commit -S " +alias gl="git log" + +#apps +alias music='ncmpcpp' +alias write='countdown $((60*20))' + +# rsync/s3cmd aliases +alias syncw="rsync -vv --recursive --delete --checksum -P --ignore-times --exclude-from=/home/lxf/.rsync-exclude-weekly $1 $2" +alias s3pics="s3cmd sync --rr --exclude '*.*' pictures/ s3://lxfpictures" + +# rename files etc +alias reraw="~/./bin/rename_raw_files.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' + +#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 movies +alias yt='youtube-dl $1 --no-check-certificate --format best' + +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)?):'" + +# open and close encrypted volume: +alias closevaultold="cd ~/documents && tar cz vault/ | openssl enc -aes-256-cbc -out ~/documents/vault.tar.gz.dat && rm -rf vault" +alias closevault="cd ~/documents && gpg-zip -c -o vault.gpg vault && rm -rf vault && cd" +alias openvault="cd ~/documents && gpg-zip -d vault.gpg" +alias openvaultold="openssl enc -aes-256-cbc -d -in ~/documents/vault.tar.gz.dat | tar xz -C ~/documents" + +# 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" + +# sync +alias ccgtodt="rsync -avvz --progress ~/pictures/nextcloud-ccg-phone/ ~/pictures/2020/00_phone/" +alias lxftodt="rsync -avvz --progress ~/pictures/nextcloud-lxf-phone/ ~/pictures/2020/00_phone/" + +alias mntHFS="sudo mount -t hfsplus -o force,rw" + +# get battery info: +alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT1 | egrep "time to empty|percentage"' |