summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc21
1 files changed, 13 insertions, 8 deletions
diff --git a/.zshrc b/.zshrc
index f0ed56b..b353b40 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,13 +1,13 @@
-export ZSH="/home/fkfd/.oh-my-zsh"
+export ZSH="/usr/share/oh-my-zsh"
ZSH_THEME="fkfd"
plugins=(
git
python
- pj
- urltools
- mosh
+ pj
+ urltools
+ mosh
)
source $ZSH/oh-my-zsh.sh
@@ -26,12 +26,12 @@ mc () {
share () {
src=$1
if [[ $2 == '' ]]; then
- dst=$1
+ dst=$(basename $1)
else
dst=$2
fi
scp -r $src www@fkfd.me:www/static/$dst
- echo "https://fkfd.me/static/$(urlencode $(basename $dst))"
+ echo "https://fkfd.me/static/$(urlencode $dst)"
}
bright () {
@@ -78,7 +78,7 @@ alias ytdlp="yt-dlp --proxy socks5://localhost:1080/"
alias v="nvim"
alias c="cat"
alias ls="exa"
-alias dormshare="sudo python -m http.server -b 192.168.8.88 80"
+alias dormshare="sudo python -m http.server -b 192.168.8.2 80"
alias scanto="scanimage -d 'hpaio:/usb/HP_LaserJet_Professional_M1219nf_MFP?serial=000000000QJA9XJFPR1a' --source Flatbed --format=jpeg --mode=Gray --resolution=200 -x 210 -y 297 -o "
alias tlmgr="/usr/share/texmf-dist/scripts/texlive/tlmgr.pl --usermode"
@@ -92,10 +92,13 @@ alias rickroll="vlc -f '/data/Videos/Rick Astley - Never Gonna Give You Up (Offi
set -B 0
# something fucked up
-alias je="journalctl -e"
+alias je="journalctl -e -f"
alias what-the-fuck-just-happened="journalctl -e -b -1"
alias accel="killall kglobalaccel5 && kglobalaccel5&"
+# TA work
+alias gccc="gcc -pedantic -std=c11 -Wall -Wextra -Werror -Wno-unused-result -Wconversion -Wvla"
+
# auto-generated by kdesrc-build initial setup: do not remove!
# Add the kdesrc-build directory to the path
# export PATH="$HOME/kde/src/kdesrc-build:$PATH"
@@ -143,3 +146,5 @@ function _comp-kdesrc-run
################################################################################
+# opam configuration
+[[ ! -r /home/fkfd/.opam/opam-init/init.zsh ]] || source /home/fkfd/.opam/opam-init/init.zsh > /dev/null 2> /dev/null