fix: gvm + surface

This commit is contained in:
2026-01-10 13:29:18 +01:00
parent c78c6096e0
commit 8fbe28decf
2 changed files with 22 additions and 11 deletions

22
.zlogin
View File

@@ -1,14 +1,14 @@
HIDRIVE=/mnt/hidrive # HIDRIVE=/mnt/hidrive
HIDRIVE_VALKNAR="$HIDRIVE/users/valknar" # HIDRIVE_VALKNAR="$HIDRIVE/users/valknar"
mount "$HIDRIVE" 2>/dev/null # mount "$HIDRIVE" 2>/dev/null
ln -s "$HIDRIVE_VALKNAR/Documents" "$HOME/Documents" 2>/dev/null # ln -s "$HIDRIVE_VALKNAR/Documents" "$HOME/Documents" 2>/dev/null
ln -s "$HIDRIVE_VALKNAR/Pictures" "$HOME/Pictures" 2>/dev/null # ln -s "$HIDRIVE_VALKNAR/Pictures" "$HOME/Pictures" 2>/dev/null
ln -s "$HIDRIVE_VALKNAR/Videos" "$HOME/Videos" 2>/dev/null # ln -s "$HIDRIVE_VALKNAR/Videos" "$HOME/Videos" 2>/dev/null
ln -s "$HIDRIVE_VALKNAR/Music" "$HOME/Music" 2>/dev/null # ln -s "$HIDRIVE_VALKNAR/Music" "$HOME/Music" 2>/dev/null
xdg-user-dirs-update --set DOCUMENTS "$HOME/Documents" # xdg-user-dirs-update --set DOCUMENTS "$HOME/Documents"
xdg-user-dirs-update --set PICTURES "$HOME/Pictures" # xdg-user-dirs-update --set PICTURES "$HOME/Pictures"
xdg-user-dirs-update --set VIDEOS "$HOME/Videos" # xdg-user-dirs-update --set VIDEOS "$HOME/Videos"
xdg-user-dirs-update --set MUSIC "$HOME/Music" # xdg-user-dirs-update --set MUSIC "$HOME/Music"

11
.zshrc
View File

@@ -19,6 +19,10 @@ if [ -d "$HOME/.cargo/bin" ]; then
export PATH="$PATH:$HOME/.cargo/bin" export PATH="$PATH:$HOME/.cargo/bin"
fi fi
if [ -d "$HOME/.gvm/bin" ]; then
export PATH="$PATH:$HOME/.gvm/bin"
fi
if [ -d "/usr/local/go/bin" ]; then if [ -d "/usr/local/go/bin" ]; then
export PATH="$PATH:/usr/local/go/bin" export PATH="$PATH:/usr/local/go/bin"
fi fi
@@ -61,6 +65,10 @@ if [ -s "$HOME/.cargo/env" ] ; then
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
fi fi
if [ -s "$HOME/.gvm/scripts/gvm" ] ; then
. "$HOME/.gvm/scripts/gvm"
fi
if command -v oh-my-posh 2>&1 >/dev/null; then if command -v oh-my-posh 2>&1 >/dev/null; then
eval "$(! oh-my-posh init zsh --config=~/worker.omp.json)" eval "$(! oh-my-posh init zsh --config=~/worker.omp.json)"
fi fi
@@ -73,6 +81,7 @@ if command -v pyenv 2>&1 >/dev/null; then
eval "$(pyenv init --path)" eval "$(pyenv init --path)"
fi fi
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n] # Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below. # confirmations, etc.) must go above this block; everything else may go below.
@@ -187,3 +196,5 @@ plugins=(git pm2 gh sudo ssh ruby rust python node github rsync nvm rbenv pyenv
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[[ -s "/home/valknar/.gvm/scripts/gvm" ]] && source "/home/valknar/.gvm/scripts/gvm"