stow
This commit is contained in:
14
config/fish/.bash_profile
Normal file
14
config/fish/.bash_profile
Normal file
@@ -0,0 +1,14 @@
|
||||
[ -d "$HOME/.local/bin" ] && export PATH="$HOME/.local/bin:$PATH"
|
||||
[ -d "$HOME/.local/scripts" ] && export PATH="$HOME/.local/scripts:$PATH"
|
||||
[ -d "$HOME/.cargo/bin" ] && export PATH="$HOME/.cargo/bin:$PATH"
|
||||
[ -d "$HOME/go/bin" ] && export PATH="$HOME/go/bin:$PATH"
|
||||
|
||||
[ -x "$HOME/.local/scripts/ssh-init" ] && eval "$(ssh-init)"
|
||||
|
||||
command -v nvim >/dev/null 2>&1 && {
|
||||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
}
|
||||
|
||||
[ -f "$HOME/.profile" ] && . "$HOME/.profile"
|
||||
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
|
||||
@@ -1,7 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=$(dirname "$(readlink -f "$0")")
|
||||
. "$path"/../../utils/apply-color-helper
|
||||
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
|
||||
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
|
||||
exit 1
|
||||
}
|
||||
. "$HOME/.local/snippets/apply-color-helper"
|
||||
|
||||
kvantummanager --set catppuccin-mocha-"$colorName" || {
|
||||
log_error "Failed to set kvantum theme to catppuccin-mocha-${colorName}"
|
||||
@@ -1,7 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=$(dirname "$(readlink -f "$0")")
|
||||
. "$path"/../../utils/apply-color-helper
|
||||
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
|
||||
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
|
||||
exit 1
|
||||
}
|
||||
. "$HOME/.local/snippets/apply-color-helper"
|
||||
|
||||
file="$HOME/.local/share/nwg-look/gsettings"
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
path=$(dirname "$(readlink -f "$0")")
|
||||
. "$path"/../../utils/apply-color-helper
|
||||
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
|
||||
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
|
||||
exit 1
|
||||
}
|
||||
. "$HOME/.local/snippets/apply-color-helper"
|
||||
|
||||
file="$path"/../posh_theme.omp.json
|
||||
|
||||
97
config/fish/.config/posh_theme.omp.json
Executable file
97
config/fish/.config/posh_theme.omp.json
Executable file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
||||
"blocks": [
|
||||
{
|
||||
"alignment": "left",
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"properties": {
|
||||
"windows": "\ue62a"
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{.Icon}}",
|
||||
"type": "os"
|
||||
},
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"style": "plain",
|
||||
"template": " {{.UserName}}",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"style": "plain",
|
||||
"template": "@{{.HostName}}",
|
||||
"type": "session"
|
||||
},
|
||||
{
|
||||
"foreground": "#94e2d5",
|
||||
"properties": {
|
||||
"folder_separator_icon": "/",
|
||||
"style": "letter"
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " \uf07b {{ .Path }} ",
|
||||
"type": "path"
|
||||
},
|
||||
{
|
||||
"foreground": "#a6e3a1",
|
||||
"powerline_symbol": "\ue0b1",
|
||||
"properties": {
|
||||
"branch_icon": " ",
|
||||
"fetch_stash_count": true,
|
||||
"fetch_status": true,
|
||||
"fetch_upstream_icon": true,
|
||||
"fetch_worktree_count": true
|
||||
},
|
||||
"style": "powerline",
|
||||
"template": " {{ .UpstreamIcon }} {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
|
||||
"type": "git"
|
||||
},
|
||||
{
|
||||
"foreground": "#f9e2af",
|
||||
"powerline_symbol": "\ue0b1",
|
||||
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
|
||||
"style": "powerline",
|
||||
"type": "python"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
},
|
||||
{
|
||||
"alignment": "left",
|
||||
"newline": true,
|
||||
"segments": [
|
||||
{
|
||||
"foreground": "#fab387",
|
||||
"style": "plain",
|
||||
"template": "\ue3bf ",
|
||||
"type": "root"
|
||||
},
|
||||
{
|
||||
"foreground": "#89b4fa",
|
||||
"foreground_templates": [
|
||||
"{{ if gt .Code 0 }}#f38ba8{{ end }}"
|
||||
],
|
||||
"properties": {
|
||||
"always_enabled": true
|
||||
},
|
||||
"style": "plain",
|
||||
"template": "{{ if gt .Code 0 }}{{ .Code }} {{ end }}# ",
|
||||
"type": "status"
|
||||
}
|
||||
],
|
||||
"type": "prompt"
|
||||
}
|
||||
],
|
||||
"transient_prompt": {
|
||||
"background": "transparent",
|
||||
"foreground_templates": [
|
||||
"{{ if gt .Code 0 }}#f38ba8{{ end }}"
|
||||
],
|
||||
"foreground": "#89b4fa",
|
||||
"template": "# "
|
||||
},
|
||||
"version": 3
|
||||
}
|
||||
Reference in New Issue
Block a user