Updated config

This commit is contained in:
Eduard Urbach 2025-06-16 23:07:48 +02:00
parent f138e06de2
commit 494a310842
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
7 changed files with 290 additions and 59 deletions

View file

@ -1,67 +1,51 @@
# Git
if command -q git
alias g "git"
alias gc "git clone"
alias gd "git diff --ignore-space-at-eol"
alias gds "git diff --ignore-space-at-eol --compact-summary"
alias gl "git log --oneline"
alias gp "git pull"
alias gs "git status"
alias home "git --git-dir=$HOME/.home/ --work-tree=$HOME"
alias homeinit "git clone --bare https://git.urbach.dev/eduard/home $HOME/.home && home checkout"
alias h "home"
alias hs "home status"
alias hd "home diff --ignore-space-at-eol"
alias hds "home diff --ignore-space-at-eol --compact-summary"
alias hp "home pull"
end
alias g "git"
alias gc "git clone"
alias gd "git diff --ignore-space-at-eol"
alias gds "git diff --ignore-space-at-eol --compact-summary"
alias gl "git log --oneline"
alias gp "git pull"
alias gs "git status"
alias home "git --git-dir=$HOME/.home/ --work-tree=$HOME"
alias homeinit "git clone --bare https://git.urbach.dev/eduard/home $HOME/.home && home checkout"
alias h "home"
alias hs "home status"
alias hd "home diff --ignore-space-at-eol"
alias hds "home diff --ignore-space-at-eol --compact-summary"
alias hp "home pull"
# Go
if command -q go
alias gb "go build -v"
alias godeps "go list -f '{{ join .Deps \"\n\"}}' ."
alias gt "go test -v"
alias gts "gotestsum"
end
alias gb "go build -v"
alias godeps "go list -f '{{ join .Deps \"\n\"}}' ."
alias gt "go test -v"
alias gts "gotestsum"
# Hyperfine
if command -q hyperfine
alias bench "hyperfine --shell=none"
end
alias bench "hyperfine --shell=none"
# Kernel
if command -q dmesg
alias kerr "sudo dmesg --level=emerg,alert,crit,err"
alias klog "sudo dmesg"
end
alias kerr "sudo dmesg --level=emerg,alert,crit,err"
alias klog "sudo dmesg"
# List
if command -q ls
alias l "ls"
alias ll "ls -l"
alias l2 "ls -T -L2"
alias lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
alias lp "ls -l --no-filesize --no-time"
end
alias l "ls"
alias ll "ls -l"
alias l2 "ls -T -L2"
alias lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
alias lp "ls -l --no-filesize --no-time"
# Netstat
if command -q netstat
alias tcp "sudo netstat -tpen"
alias udp "sudo netstat -upen"
alias tcps "sudo netstat -tlpen"
alias udps "sudo netstat -ulpen"
alias servers "sudo netstat -tulpen"
end
alias tcp "sudo netstat -tpen"
alias udp "sudo netstat -upen"
alias tcps "sudo netstat -tlpen"
alias udps "sudo netstat -ulpen"
alias servers "sudo netstat -tulpen"
# MPV
if command -q mpv
alias m "mpv music --shuffle --no-video"
end
alias m "mpv music --shuffle --no-video"
# Neovim
if command -q nvim
alias e nvim
end
alias e nvim
# Pacman
if command -q apk
@ -87,7 +71,10 @@ end
# Sudo
if command -q doas
alias s "doas"
alias sudo "doas"
else
alias s "sudo"
end
# Systemctl
@ -107,12 +94,10 @@ else if command -q systemctl
end
# Tmux
if command -q tmux
alias ta "tmux attach"
alias td "tmux detach"
alias tl "tmux ls"
alias tk "tmux kill-server"
end
alias ta "tmux attach"
alias td "tmux detach"
alias tl "tmux ls"
alias tk "tmux kill-server"
# ...
alias align "column -t -o ' '"
@ -123,6 +108,7 @@ alias disasm "llvm-objdump --disassembler-color=on --x86-asm-syntax=intel -d"
alias ff "fastfetch"
alias fn "rg --files | rg"
alias hex "hexdump -C"
alias irc "senpai"
alias log "journalctl"
alias utc "date -u +'%Y-%m-%dT%H:%M:%SZ'"
alias dl "yt-dlp -x -f bestaudio"

View file

@ -0,0 +1,6 @@
#!/usr/bin/fish
for f in *.opus
set tmp /tmp/remux.opus
ffmpeg -i "$f" -c copy "$tmp" && mv "$tmp" "$f"
end