This commit is contained in:
Jaroslaw Konik 2025-05-16 09:19:00 +02:00
parent 23fee81e1f
commit 48505be26a
3 changed files with 13 additions and 44 deletions

21
.bashrc
View file

@ -1,9 +1,14 @@
alias nvim=nvr_git
export EDITOR=nvim
export PATH="$PATH:$HOME/.cargo/bin"
. "$HOME/.cargo/env"
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
# PS1='[\u@\h \W]\$ '
eval "$(starship init bash)"
alias export_esp=". /home/jaroslaw/bin/export-esp.sh"
alias get_idf='. $HOME/src/esp/esp-idf/export.sh'
export PATH=$PATH:~/bin/zig
export WGPU_BACKEND=opengl
starship_precmd
alias nvim=nvr_git
alias get_esprs='. $HOME/bin/export-esp.sh'

22
.zshrc
View file

@ -1,22 +0,0 @@
nvr_git () {
local main_module_repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null)
local repo_path=$(git rev-parse --show-toplevel 2>/dev/null)
if [[ -z "$main_module_repo_path" ]]; then
main_module_repo_path=$repo_path
fi
if [ -n "$main_module_repo_path" ]; then
local servername=/tmp/nvr$(echo $main_module_repo_path | tr "/" "_")
nvr -s --servername $servername "$@"
else
/usr/bin/nvim "$@"
fi
}
alias nvim=nvr_git
export EDITOR=nvim
export PATH="$PATH:$HOME/.cargo/bin"
. "$HOME/.cargo/env"
eval "$(starship init zsh)"
alias export_esp=". /home/jaroslaw/bin/export-esp.sh"
alias get_idf='. $HOME/src/esp/esp-idf/export.sh'

View file

@ -1,14 +0,0 @@
{
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"keyboard.dispatch": "keyCode",
"workbench.colorTheme": "Catppuccin Mocha",
"editor.fontFamily": "FiraCode Nerd Font",
"editor.fontLigatures": true,
"workbench.productIconTheme": "material-product-icons",
"workbench.iconTheme": "catppuccin-mocha",
"editor.inlayHints.enabled": "offUnlessPressed",
"rust-analyzer.lens.implementations.enable": false,
"remote.autoForwardPortsSource": "hybrid"
}