Skip to content

Commit

Permalink
move theme out
Browse files Browse the repository at this point in the history
  • Loading branch information
noriah committed Jun 13, 2023
1 parent 0ed3299 commit 46ea17e
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 1,093 deletions.
1 change: 1 addition & 0 deletions etc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
opensnitch
24 changes: 7 additions & 17 deletions etc/burrow/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ rightPlugin() {

typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off

# print-exit-code() {
# local -i code=$?
# if (( code )); then
# print -- ${(%):-"❌ %F{196}exit code $code%f"}
# fi
# }

# autoload -Uz add-zsh-hook
# add-zsh-hook precmd print-exit-code

typeset -g POWERLEVEL9K_INSTANT_PROMPT_COMMAND_LINES=0
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose

Expand Down Expand Up @@ -254,9 +244,9 @@ rightPlugin() {
POWERLEVEL9K_DIR_CLASSES+=(
"$WORKSPACE_DIR" WORKSPACE '%B\uF44F'
"$public_dir|$public_dir/*" WORKSPACE_PUBLIC '%B\uE780'
"$local_dir|$local_dir/*" WORKSPACE_LOCAL '%B\uF7C9'
"$notes_dir|$notes_dir/*" WORKSPACE_NOTES '%B\uFD2C'
"$vault_dir|$vault_dir/*" WORKSPACE_VAULT '%B\uFC71'
"$local_dir|$local_dir/*" WORKSPACE_LOCAL '%B\U000f02ca'
"$notes_dir|$notes_dir/*" WORKSPACE_NOTES '%B\U000f082e'
"$vault_dir|$vault_dir/*" WORKSPACE_VAULT '%B\U000f0773'
)

if [ ! -z "$WORKSPACE_DIR_CLASSES_EXTRA" ]; then
Expand Down Expand Up @@ -378,22 +368,22 @@ rightPlugin() {
typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
typeset -g POWERLEVEL9K_BATTERY_STAGES=$'\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578'
typeset -g POWERLEVEL9K_BATTERY_STAGES=$'\U000f008e\U000f007a\U000f007b\U000f007c\U000f007d\U000f007e\U000f007f\U000f0080\U000f0081\U000f0082\U000f0079'
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=true
fi


# ---- [go_version] ----
if burrow check 'golang'; then
typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION=$'\ufcd1'
typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION=$'\U000f07d3'
typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_COLOR=87
typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=11
fi


# ---- [rust_version] ----
if burrow check 'rust'; then
typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION=$'\uf827'
typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION=$'\U000f0328'
typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_COLOR=166
typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=11
fi
Expand All @@ -402,7 +392,7 @@ rightPlugin() {
# ---- [node_version] ----
if burrow check 'node'; then
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
# typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION=$'\u'
typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION=$'\U000f0399'
typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_COLOR=10
typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=11
fi
Expand Down
2 changes: 0 additions & 2 deletions usr/burrow/plans/python.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
den::env::default 'PYTHON_HISTORY' "$HISTORY/python"

export PYTHONSTARTUP="$DEN/usr/python/startup.py"
5 changes: 4 additions & 1 deletion usr/python/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@
import rlcompleter

historyPath = os.path.expanduser(
os.getenv("PYTHON_HISTORY", "~/var/history/python"))
os.getenv("PYTHON_HISTORY",
os.path.join(os.getenv("HISTORY", "~/var/history"), "python")))


def save_history(historyPath=historyPath):
import readline
readline.write_history_file(historyPath)


if os.path.exists(historyPath):
readline.read_history_file(historyPath)

Expand Down
37 changes: 25 additions & 12 deletions usr/vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
[
"BazelBuild.vscode-bazel",
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
// remote
"ms-vscode-remote.vscode-remote-extensionpack",
"ms-vscode.makefile-tools",
// ide tools
"alefragnani.project-manager",
"BazelBuild.vscode-bazel",
"ms-vscode.cmake-tools",
"ms-vscode.makefile-tools",
"platformio.platformio-ide",
"twxs.cmake",
"golang.go",
// quality of life
"AntiAntiSepticeye.vscode-color-picker",
"naumovs.color-highlight",
// languages / syntax
"bmarkovic.haproxy",
"codeout.vscode-junos",
"dcasella.i3",
"PKief.material-icon-theme",
"rust-lang.rust-analyzer",
"golang.go",
"hashicorp.terraform",
"platformio.platformio-ide",
"ms-python.isort",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"puppet.puppet-vscode",
"zxh404.vscode-proto3",
"redhat.vscode-yaml",
"rust-lang.rust-analyzer",
"XadillaX.viml",
"naumovs.color-highlight",
"AntiAntiSepticeye.vscode-color-picker",
"codeout.vscode-junos"
"yzhang.markdown-all-in-one",
"zxh404.vscode-proto3",
// themes
"noriah.theme-vixn",
"PKief.material-icon-theme",
"vscode-icons-team.vscode-icons"
]
19 changes: 0 additions & 19 deletions usr/vscode/extensions/theme-vixn/package.json

This file was deleted.

Loading

0 comments on commit 46ea17e

Please sign in to comment.