Updated config

This commit is contained in:
2024-02-01 23:59:16 +01:00
parent 973894cfab
commit 7face48c6f
8 changed files with 42 additions and 12 deletions

View File

@ -8,12 +8,18 @@ alias gs "git status"
alias home "git --git-dir=$HOME/.home/ --work-tree=$HOME"
# Go
alias gob "go build -v"
alias got "go test -v"
alias gb "go build -v"
alias gt "go test -v"
# Hyperfine
alias bench "hyperfine --shell=none"
# List
alias l "ls"
alias ll "ls -1"
alias lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
alias lp "ls -l --no-filesize --no-time"
# Neovim
alias e "nvim"
alias n "nvim"
@ -23,6 +29,10 @@ alias p "pacman"
alias pi "sudo pacman -S"
alias pr "sudo pacman -Rs"
alias pu "sudo pacman -Syu"
alias pl "pacman -Q"
alias po "pacman -Qo"
alias pc "sudo pacman -Sc"
alias porphan "pacman -Qtdq"
# Tmux
alias t "tmux"
@ -35,16 +45,19 @@ alias tk "tmux kill-server"
alias s "systemctl"
alias s+ "systemctl start"
alias s- "systemctl stop"
alias sr "systemctl restart"
alias ss "systemctl status"
alias sl "systemctl list-units --type=service --state=running"
alias sld "systemctl list-unit-files --type=service --state=disabled"
alias sle "systemctl list-unit-files --type=service --state=enabled"
alias slt "systemctl list-timers"
alias ss "systemctl status"
# ...
alias cdp "cd ~/projects"
alias cfg "config"
alias cls "clear"
alias hex "hexdump -C"
alias log "journalctl"
# Close all windows
alias closeall "wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic"

View File

@ -0,0 +1,3 @@
function config
$EDITOR $HOME/.config/$argv
end

View File

@ -1,3 +0,0 @@
function ll
ls -l $argv
end

View File

@ -1,7 +1,7 @@
function ls
if command -q exa
exa -1 --icons=auto $argv
if command -q eza
eza --group-directories-first --time-style relative $argv
else
command ls $argv
end
end
end