Updated config
This commit is contained in:
parent
cf03acd24a
commit
3fb4a346b8
@ -13,4 +13,4 @@ end
|
|||||||
|
|
||||||
# Add to PATH
|
# Add to PATH
|
||||||
fish_add_path $GOPATH/bin
|
fish_add_path $GOPATH/bin
|
||||||
fish_add_path $HOME/.local/bin
|
fish_add_path $XDG_CONFIG_HOME/fish/scripts
|
@ -1,6 +1,6 @@
|
|||||||
# This file contains fish universal variable definitions.
|
# This file contains fish universal variable definitions.
|
||||||
# VERSION: 3.0
|
# VERSION: 3.0
|
||||||
SETUVAR __fish_initialized:3400
|
SETUVAR __fish_initialized:3800
|
||||||
SETUVAR fish_color_autosuggestion:707A8C
|
SETUVAR fish_color_autosuggestion:707A8C
|
||||||
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
||||||
SETUVAR fish_color_command:00ff00
|
SETUVAR fish_color_command:00ff00
|
||||||
@ -42,4 +42,4 @@ SETUVAR fish_pager_color_selected_completion:\x1d
|
|||||||
SETUVAR fish_pager_color_selected_description:\x1d
|
SETUVAR fish_pager_color_selected_description:\x1d
|
||||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
SETUVAR fish_pager_color_selected_prefix:\x1d
|
||||||
SETUVAR fish_prompt_pwd_dir_length:0
|
SETUVAR fish_prompt_pwd_dir_length:0
|
||||||
SETUVAR fish_user_paths:/home/eduard/\x2elocal/share/go/bin\x1e/home/eduard/\x2elocal/bin
|
SETUVAR fish_user_paths:/home/eduard/\x2econfig/fish/scripts\x1e/home/eduard/\x2elocal/share/go/bin\x1e/home/eduard/\x2elocal/bin
|
||||||
|
20
.config/fish/scripts/backup
Executable file
20
.config/fish/scripts/backup
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/fish
|
||||||
|
set DIRECTORIES documents music pictures projects videos
|
||||||
|
set EXCLUDES node_modules .cache .godot .svelte-kit
|
||||||
|
set FLAGS -avz --delete
|
||||||
|
set HOSTS $argv
|
||||||
|
set USER (whoami)
|
||||||
|
set DESTINATION "~/files/"
|
||||||
|
|
||||||
|
for exclude in $EXCLUDES
|
||||||
|
set -a FLAGS --exclude $exclude
|
||||||
|
end
|
||||||
|
|
||||||
|
for host in $HOSTS
|
||||||
|
echo "[$host]"
|
||||||
|
|
||||||
|
for DIR in $DIRECTORIES
|
||||||
|
echo "Backing up $DIR..."
|
||||||
|
rsync $FLAGS ~/$DIR $USER@$host:$DESTINATION
|
||||||
|
end
|
||||||
|
end
|
26
.config/fish/scripts/gitloc
Executable file
26
.config/fish/scripts/gitloc
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
if test -z $CONFIRM; or test $CONFIRM != 'y'
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if not command -q tokei
|
||||||
|
echo "tokei is not installed"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if not command -q jq
|
||||||
|
echo "jq is not installed"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
git log --pretty=format:"%h" --reverse | read -za COMMITS
|
||||||
|
|
||||||
|
for commit in $COMMITS
|
||||||
|
git checkout $commit &> /dev/null
|
||||||
|
tokei --output json | jq ".Total.code"
|
||||||
|
end
|
||||||
|
|
||||||
|
git checkout main &> /dev/null
|
Loading…
x
Reference in New Issue
Block a user