My zsh configuration
git clone https://github.com/m-col/zshrc
Files | Refs | Readme

Commit 39f765d8f5677e3cd01fc4932cf148904e9bb25f
Parent: 93897239f7f931ad2633cd5d17c2075e2cc41e08
Author: mcol <mcol@posteo.net>
Date: 2023-09-23 20:24:04 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2024-10-14 23:41:44 +0100

add things

zshrc Modified

@@ -63,8 +63,8 @@
     EDITOR=nvim \
     AUR_PAGER=ranger \
     TERM=xterm \
-    LANG=en_US.UTF-8 \
-    LC_CTYPE=en_US.UTF-8 \
+    LANG=en_GB.UTF-8 \
+    LC_CTYPE=en_GB.UTF-8 \
     PAGER="less --mouse" \
     RANGER_LOAD_DEFAULT_RC=FALSE
 

functions.zsh Modified

@@ -64,7 +64,12 @@
 }
 
 rec_screen() {
-    ffmpeg -f x11grab -r 30 -s 1920x1080 -i $DISPLAY -pix_fmt yuv420p out.mp4
+    if [[ -n "$WAYLAND_DISPLAY" ]]
+    then
+	wf-recorder
+    else
+	ffmpeg -f x11grab -r 30 -s 1920x1080 -i $DISPLAY -pix_fmt yuv420p out.mp4
+    fi
 }
 rec_screen_mic() {
     ffmpeg -f x11grab -r 30 -s 1920x1080 -i $DISPLAY -f pulse -ac 2 -i default out.mkv

aliases Modified

@@ -9,6 +9,7 @@
 alias l='ls -lhFv'
 alias lc='ls -c1'
 alias tmp='cd /tmp; l'
+alias gtmp='cd `mktemp -d`'
 alias _='sudo'
 alias p='ps aux  | grep -v grep | grep -i'
 alias import='echo you forgot to enter python'
@@ -60,6 +61,7 @@
 alias dns='cat /etc/resolv.conf'
 alias wnet='sudo netstat -nputw'
 alias wnetl='sudo netstat -nputlw'
+alias scrn='sudo systemctl restart NetworkManager'
 
 # launchers
 alias ra='ranger'
@@ -101,6 +103,7 @@
 alias rs='git restore'
 alias rsp='git restore --patch'
 alias rss='git restore --staged'
+alias rssp='git restore --staged --patch'
 alias st='git stash'
 alias stl='git stash list'
 alias stp='git stash pop'
@@ -142,4 +145,5 @@
 
 alias c='cargo'
 alias cw='cargo-watch -c -q -x run'
+alias cb='cargo build --'
 alias cf='cargo fmt'