update dotfiles
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
@ -120,11 +120,10 @@ fi
|
||||
bind 'set show-all-if-ambiguous on'
|
||||
bind 'TAB:menu-complete'
|
||||
|
||||
export PATH="$PATH:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/bin:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/.local/share/flatpak/exports/share"
|
||||
export PATH="$PATH:HOME/.local/bin:$HOME/bin:$HOME/.local/share/flatpak/exports/share:$HOME/.local/pipx/venvs:$HOME/.cargo/bin"
|
||||
|
||||
# alias
|
||||
|
||||
alias hh="hstr"
|
||||
alias update="sudo nala update ; sudo nala upgrade -y ; sudo nala autoremove -y ; flatpak upgrade -y ; flatpak uninstall --unused -y"
|
||||
alias ll='exa -lh --icons'
|
||||
alias install="sudo nala install -y"
|
||||
@ -140,12 +139,7 @@ alias push="git push -u origin master"
|
||||
alias pull="git pull"
|
||||
alias gs="git status"
|
||||
alias gm="git commit -m"
|
||||
# alias rr="rnr 2> /dev/null"
|
||||
alias rr="source ranger 2> /dev/null"
|
||||
alias dg="ddgr --colorize always --reg it-it"
|
||||
alias cat="batcat"
|
||||
alias ..="cd .."
|
||||
alias ....="cd ../.."
|
||||
alias ipc="ip --color a"
|
||||
alias ss="scrcpy -S"
|
||||
alias weather="curl https://wttr.in/Sacile"
|
||||
@ -153,12 +147,6 @@ alias nn="ncdu --color dark"
|
||||
alias pd="pandoc -f markdown -t pdf --pdf-engine=xelatex -V lang=it -V colorlinks=true -V linkcolor=teal -V urlcolor=teal -V toccolor=gray --template eisvogel --listings -V table-use-row-colors=true"
|
||||
alias fh="feh"
|
||||
alias fhm="feh -m"
|
||||
alias dns="dig go.dnscheck.tools | grep -i server | sed -e 's/#.*$//' -e 's/;;//' -e 's/SERVER/DNS/'"
|
||||
|
||||
# RNR
|
||||
|
||||
source ~/.local/share/rnr/rnr.sh
|
||||
stty -ixon
|
||||
|
||||
# PS1
|
||||
|
||||
@ -177,23 +165,10 @@ parse_git_branch() {
|
||||
|
||||
export PS1="$GREEN[\A \d]$CYAN\u$BLUE@\h $DEFAULT(\!):$YELLOW\w $PURPLE\n\$(parse_git_branch)$DEFAULT > "
|
||||
|
||||
# HSTR configuration - add this to ~/.bashrc
|
||||
|
||||
export HSTR_CONFIG=monochromatic # get more colors
|
||||
shopt -s histappend # append new history items to .bash_history
|
||||
export HISTCONTROL=ignorespace # leading space hides commands from history
|
||||
export HISTSIZE=${HISTFILESIZE} # increase history size (default is 500)
|
||||
# ensure synchronization between bash memory and history file
|
||||
export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}"
|
||||
# if this is interactive shell, then bind hstr to Ctrl-r (for Vi mode check doc)
|
||||
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hstr -- \C-j"'; fi
|
||||
# if this is interactive shell, then bind 'kill last command' to Ctrl-x k
|
||||
if [[ $- =~ .*i.* ]]; then bind '"\C-xk": "\C-a hstr -k \C-j"'; fi
|
||||
|
||||
# Editor
|
||||
|
||||
export EDITOR='vim'
|
||||
export VISUAL='vim'
|
||||
|
||||
#set -o vi
|
||||
#set show-mode-in-prompt on
|
||||
LANG="it_IT.UTF-8"
|
||||
export LANG
|
||||
. "$HOME/.cargo/env"
|
||||
|
@ -1,26 +1,2 @@
|
||||
"\e[5~": history-search-backward
|
||||
"\e[6~": history-search-forward
|
||||
|
||||
#set editing-mode vi
|
||||
#set show-mode-in-prompt on
|
||||
|
||||
# SET THE MODE STRING AND CURSOR TO INDICATE THE VIM MODE
|
||||
# FOR THE NUMBER AFTER `\e[`:
|
||||
# 0: blinking block
|
||||
# 1: blinking block (default)
|
||||
# 2: steady block
|
||||
# 3: blinking underline
|
||||
# 4: steady underline
|
||||
# 5: blinking bar (xterm)
|
||||
# 6: steady bar (xterm)
|
||||
#set vi-ins-mode-string (ins)\1\e[5 q\2
|
||||
#set vi-cmd-mode-string (cmd)\1\e[1 q\2
|
||||
#
|
||||
#$if mode=vi
|
||||
#set keymap vi-command
|
||||
#"k": history-substring-search-backward
|
||||
#"j": history-substring-search-forward
|
||||
#
|
||||
#set keymap vi-insert
|
||||
#"\C-l": clear-screen
|
||||
#$endif
|
||||
|
Reference in New Issue
Block a user