Updated config

This commit is contained in:
Eduard Urbach 2025-05-28 16:39:25 +02:00
parent 8fcda55cbd
commit 0943589dd7
Signed by: eduard
GPG key ID: 49226B848C78F6C8
21 changed files with 155 additions and 199 deletions

View file

@ -3,6 +3,7 @@ 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"
@ -11,6 +12,7 @@ if command -q git
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
@ -49,9 +51,8 @@ if command -q lsof
end
# Neovim
if command -q nvim
alias e "nvim"
alias n "nvim"
if command -q $EDITOR
alias e $EDITOR
end
# Pacman
@ -59,9 +60,9 @@ if command -q apk
alias p "apk"
alias pi "sudo apk add"
alias pr "sudo apk del"
alias pu "sudo apk update"
alias pu "sudo apk update && sudo apk upgrade"
alias pl "apk info"
alias powner "apk info --who-owns"
alias po "apk info --who-owns"
else if command -q pacman
alias p "pacman"
alias pi "sudo pacman -S"
@ -73,7 +74,7 @@ else if command -q pacman
alias paur "pacman -Qm"
alias pfiles "pacman -Ql"
alias porphan "pacman -Qtdq"
alias powner "pacman -Qo"
alias po "pacman -Qo"
end
# Sudo

View file

@ -1,8 +1,3 @@
# Interactive mode
if status is-interactive
source $HOME/.config/fish/alias.fish
end
# Set environment variables from .env
while read -la line
set -l keyval (string split -m1 "=" $line)
@ -12,10 +7,7 @@ while read -la line
set -xg $key $value
end < ~/.env
# Add scripts to PATH
fish_add_path $XDG_CONFIG_HOME/fish/scripts
# Add Go binaries to PATH
if command -q go
fish_add_path (go env GOPATH)/bin
# Interactive mode aliases
if status is-interactive
source $HOME/.config/fish/alias.fish
end

View file

@ -41,5 +41,4 @@ SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dFFCC66
SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_prompt_pwd_dir_length:0
SETUVAR fish_user_paths:/home/eduard/\x2econfig/fish/scripts\x1e/home/eduard/\x2elocal/share/go/bin\x1e/home/eduard/\x2elocal/bin
SETUVAR fish_prompt_pwd_dir_length:0

View file

@ -1,4 +1,4 @@
#!/bin/fish
#!/usr/bin/fish
set DIRECTORIES documents music pictures projects videos
set EXCLUDES node_modules .cache .godot .svelte-kit
set FLAGS --archive --compress --delete --quiet

View file

@ -1,4 +1,4 @@
#!/bin/fish
#!/usr/bin/fish
echo "This will modify your git repository to count the lines of code for each commit."
read -l -P "Do you want to continue? [y/N] " CONFIRM