Changes to work on vps

This commit is contained in:
2025-09-22 14:05:35 +00:00
parent dbaa71b374
commit a2333aa608
4 changed files with 38 additions and 5 deletions

20
.bashrc
View File

@@ -171,22 +171,34 @@ if [[ $hostname == "arch-bepis" ]]; then
elif [[ $hostname == "bepis-laptop" ]]; then elif [[ $hostname == "bepis-laptop" ]]; then
export PATH="$PATH:/opt/nvim-linux-x86_64/bin" export PATH="$PATH:/opt/nvim-linux-x86_64/bin"
export SSH_AUTH_SOCK=/home/wholteza/snap/bitwarden/current/.bitwarden-ssh-agent.sock export SSH_AUTH_SOCK=/home/wholteza/snap/bitwarden/current/.bitwarden-ssh-agent.sock
elif [[ $hostname == "dev1" ]]; then
export PATH="$PATH:/opt/nvim-linux-x86_64/bin"
fi fi
## add cargo installed binaries to PATH ## add cargo installed binaries to PATH
export PATH="/home/wholteza/.cargo/bin:$PATH" if [[ -d /home/wholteza/.cargo/bin ]]; then
export PATH="/home/wholteza/.cargo/bin:$PATH"
fi
## add swayprop to PATH ## add swayprop to PATH
export PATH="/home/wholteza/.config/swayprop:$PATH" if [[ -d /home/wholteza/.config/swayprop ]]; then
export PATH="/home/wholteza/.config/swayprop:$PATH"
fi
source /usr/share/nvm/init-nvm.sh if [ -e /usr/share/nvm/init-nvm.sh ]; then
source /usr/share/nvm/init-nvm.sh
fi
export ompPath="$HOME/.config/oh-my-posh/theme.omp.json" export ompPath="$HOME/.config/oh-my-posh/theme.omp.json"
### Start oh my posh ### Start oh my posh
eval "$(oh-my-posh init bash --config $ompPath)" eval "$(oh-my-posh init bash --config $ompPath)"
if [ -d "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi
### Start tmux if not already in a session ### Start tmux if not already in a session
if [[ -z "$TMUX" ]]; then if [[ -z "$TMUX" ]]; then
tmux attach || tmux new tmux attach || tmux new
fi fi
. "$HOME/.cargo/env"

View File

@@ -9,6 +9,7 @@ done
sudo apt update sudo apt update
sudo apt install \ sudo apt install \
unzip \
feh \ feh \
wget \ wget \
curl \ curl \
@@ -27,12 +28,17 @@ sudo snap install rustup --classic
rustup default stable rustup default stable
rustup update rustup update
# Oh my posh # Oh my posh
curl -s https://ohmyposh.dev/install.sh | sudo bash -s curl -s https://ohmyposh.dev/install.sh | bash -s
# Node version manager # Node version manager
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install 22
nvm use 22
npm install
# Install nvim # Install nvim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim sudo rm -rf /opt/nvim
sudo rm -rf /opt/nvim-linux-x86_64
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
if $graphical; then if $graphical; then

View File

@@ -1,3 +1,7 @@
unbind C-b
set -g prefix C-t
bind C-t send-prefix
set -g mouse on set -g mouse on
# List of plugins # List of plugins

11
package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "wholteza",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}