From 104708e33d68d4b89d9c612cd8a7f5c2a3ada217 Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Fri, 31 May 2024 13:46:58 +0200 Subject: [PATCH] update --- .bashrc | 17 +++++++++++++++++ .inputrc | 34 ++++++++++++++++++++++++++++++++++ .zshrc | 39 --------------------------------------- bashrc | 29 ----------------------------- 4 files changed, 51 insertions(+), 68 deletions(-) create mode 100644 .bashrc create mode 100644 .inputrc delete mode 100644 bashrc diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..10bae68 --- /dev/null +++ b/.bashrc @@ -0,0 +1,17 @@ +nvr_git () { + local repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null) + if [ -n "$repo_path" ]; then + local servername=/tmp/nvr$(echo $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' diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..b01cc0a --- /dev/null +++ b/.inputrc @@ -0,0 +1,34 @@ +################################################################################ +## ~/.inputrc +## +## Control the behaviour of the readline library used e.g. +## by the bash in the interactive mode for line editing. +## +################################################################################ +# +# The bell style used e.g. on error or tab completion, possible values +# are `none', `visible', and `audible' the ringing the bell. +# +#set bell-style none + +# +# If set to on, words which have more than one possible completion without +# any possible partial completion cause the matches to be listed immediately +# instead of ringing the bell. +# +#set show-all-if-unmodified on + +# +# If set to on, words which have more than one possible completion cause the +# matches to be listed immediately instead of ringing the bell. +# +#set show-all-if-ambiguous on + +# +# end +# + +## arrow up +"\e[A":history-search-backward +## arrow down +"\e[B":history-search-forward diff --git a/.zshrc b/.zshrc index b405c85..10bae68 100644 --- a/.zshrc +++ b/.zshrc @@ -1,26 +1,3 @@ -# Lines configured by zsh-newuser-install -HISTFILE=~/.histfile -HISTSIZE=10000 -SAVEHIST=10000 -bindkey -e -# End of lines configured by zsh-newuser-install -# The following lines were added by compinstall -zstyle :compinstall filename '/home/jaroslaw/.zshrc' - -autoload -Uz compinit -compinit -# End of lines added by compinstall - -# export NVM_DIR="$HOME/.nvm" -# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -# unset SSH_ASKPASS -# export PYTHONSTARTUP=.python_startup.py -# eval "$(~/.rbenv/bin/rbenv init - bash)" -# alias nvim=nvim_listen.sh -# export TERM='xterm-256color' -# - nvr_git () { local repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null) if [ -n "$repo_path" ]; then @@ -32,25 +9,9 @@ nvr_git () { } alias nvim=nvr_git -alias vim=nvim export EDITOR=nvim export PATH="$PATH:$HOME/.cargo/bin" . "$HOME/.cargo/env" eval "$(starship init zsh)" -bindkey '^[[A' up-line-or-search -bindkey '^[[B' down-line-or-search - -# Wasmer -# export WASMER_DIR="/home/jaroslaw/.wasmer" -# [ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh" -# export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" alias export_esp=". /home/jaroslaw/bin/export-esp.sh" alias get_idf='. $HOME/src/esp/esp-idf/export.sh' - -[ -f "/home/jaroslaw/.ghcup/env" ] && . "/home/jaroslaw/.ghcup/env" # ghcup-env - -bindkey '^[[A' up-line-or-search -bindkey '^[[B' down-line-or-search - -ssh-add -q ~/.ssh/id_rsa -eval `luarocks path` diff --git a/bashrc b/bashrc deleted file mode 100644 index e0d1aa8..0000000 --- a/bashrc +++ /dev/null @@ -1,29 +0,0 @@ -# Sample .bashrc for SUSE Linux -# Copyright (c) SUSE Software Solutions Germany GmbH - -# There are 3 different types of shells in bash: the login shell, normal shell -# and interactive shell. Login shells read ~/.profile and interactive shells -# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all -# settings made here will also take effect in a login shell. -# -# NOTE: It is recommended to make language settings in ~/.profile rather than -# here, since multilingual X sessions would not work properly if LANG is over- -# ridden in every subshell. - -test -s ~/.alias && . ~/.alias || true - -eval "$(starship init bash)" - -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -export PATH="$PATH:$HOME/.cargo/bin" -. "$HOME/.cargo/env" -unset SSH_ASKPASS -export PYTHONSTARTUP=.python_startup.py -eval "$(~/.rbenv/bin/rbenv init - bash)" -alias nvim=nvim_listen.sh -alias nvim=nvr -alias vim=nvim -export EDITOR=nvim -export TERM='xterm-256color'