fix: apply-color script of fastfetch & gcp
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
}
|
||||
. "$HOME/.local/snippets/apply-color-helper"
|
||||
|
||||
file="$HOME/.config/fish/post.d/fetch.fish"
|
||||
file="$HOME/.config/fish/conf.d/60-fetch.fish"
|
||||
|
||||
sed -i -E "s/(set -g fetch_color\s+\"#)([0-9a-fA-F]{6})(\")/\1${colorHex}\3/" "$file" || {
|
||||
log_error "Failed to edit ${file}"
|
||||
|
||||
@@ -92,10 +92,11 @@ end
|
||||
|
||||
if type -q git
|
||||
function gcp
|
||||
git add -A || return 1
|
||||
if test (count $argv) -eq 0
|
||||
git commit -a -m "👐 foo: too lazy to come up with a helpful commit message :)" || return 1
|
||||
git commit -m "👐 foo: too lazy to come up with a helpful commit message :)" || return 1
|
||||
else
|
||||
git commit -a -m "$argv" || return 1
|
||||
git commit -m "$argv" || return 1
|
||||
end
|
||||
git push
|
||||
end
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
"fetch_status": true,
|
||||
"fetch_upstream_icon": true,
|
||||
"mapped_branches": {
|
||||
"feat/*": "🚀 ",
|
||||
"bug/*": "🐛 ",
|
||||
"dev/*": "🚧 "
|
||||
"feat/*": "\ud83d\ude80 ",
|
||||
"bug/*": "\ud83d\udc1b ",
|
||||
"dev/*": "\ud83d\udea7 "
|
||||
}
|
||||
},
|
||||
"style": "powerline",
|
||||
|
||||
Reference in New Issue
Block a user