update
This commit is contained in:
parent
43046edb90
commit
104708e33d
4 changed files with 51 additions and 68 deletions
17
.bashrc
Normal file
17
.bashrc
Normal file
|
|
@ -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'
|
||||||
34
.inputrc
Normal file
34
.inputrc
Normal file
|
|
@ -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
|
||||||
39
.zshrc
39
.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 () {
|
nvr_git () {
|
||||||
local repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null)
|
local repo_path=$(git rev-parse --show-superproject-working-tree 2>/dev/null)
|
||||||
if [ -n "$repo_path" ]; then
|
if [ -n "$repo_path" ]; then
|
||||||
|
|
@ -32,25 +9,9 @@ nvr_git () {
|
||||||
}
|
}
|
||||||
|
|
||||||
alias nvim=nvr_git
|
alias nvim=nvr_git
|
||||||
alias vim=nvim
|
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export PATH="$PATH:$HOME/.cargo/bin"
|
export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
eval "$(starship init zsh)"
|
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 export_esp=". /home/jaroslaw/bin/export-esp.sh"
|
||||||
alias get_idf='. $HOME/src/esp/esp-idf/export.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`
|
|
||||||
|
|
|
||||||
29
bashrc
29
bashrc
|
|
@ -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'
|
|
||||||
Loading…
Reference in a new issue