mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2024-11-25 11:53:43 +01:00
Update input.zsh
This commit is contained in:
parent
89ab5ae878
commit
465bdd2529
14
.zshenv
14
.zshenv
@ -1,5 +1,3 @@
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# ~/.zshenv
|
||||
|
||||
## go paths
|
||||
@ -29,10 +27,17 @@ export EDITOR="nvim"
|
||||
|
||||
## manpages
|
||||
export MANPATH="${MANPATH:-/usr/share/man:/usr/local/share/man:/var/home/jas/.fzf/man}"
|
||||
export MANPAGER="less -X"
|
||||
|
||||
## manpage colors
|
||||
export LESS_TERMCAP_mb=$'\e[01;31m' # begin blinking
|
||||
export LESS_TERMCAP_md=$'\e[01;37m' # begin bold
|
||||
export LESS_TERMCAP_me=$'\e[0m' # end all mode like so, us, mb, md, mr
|
||||
export LESS_TERMCAP_se=$'\e[0m' # end standout-mode
|
||||
export LESS_TERMCAP_so=$'\e[45;93m' # start standout mode
|
||||
export LESS_TERMCAP_ue=$'\e[0m' # end underline
|
||||
export LESS_TERMCAP_us=$'\e[4;93m' # start underlining
|
||||
|
||||
## set pager stuffs
|
||||
export PAGER="less -X"
|
||||
export BAT_THEME="Catppuccin"
|
||||
|
||||
## set history stuffs
|
||||
@ -40,3 +45,4 @@ export HISTFILE=~/.zsh_history
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=10000
|
||||
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
|
5
.zshrc
5
.zshrc
@ -1,5 +1,3 @@
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# ~/.zshrc
|
||||
|
||||
## Plugins
|
||||
@ -17,7 +15,6 @@ zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||
zplug "amaya382/zsh-fzf-widgets"
|
||||
zplug "chitoku-k/fzf-zsh-completions"
|
||||
zplug "plugins/dnf", from:oh-my-zsh
|
||||
zplug "plugins/colored-man-pages", from:oh-my-zsh
|
||||
zplug "plugins/extract", from:oh-my-zsh
|
||||
zplug "plugins/firewalld", from:oh-my-zsh
|
||||
zplug "plugins/git", from:oh-my-zsh
|
||||
@ -54,3 +51,5 @@ export LS_COLORS=$(cat ~/.lscolors.sh)
|
||||
|
||||
## Prompt
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
|
@ -1,5 +1,3 @@
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# ~/.zshrc.d/aliases.zsh
|
||||
|
||||
## the ls family
|
||||
@ -69,3 +67,5 @@ alias logs="ls /var/log/"
|
||||
## reboot/poweroff
|
||||
alias rbt="sudo systemctl reboot"
|
||||
alias shut="sudo systemctl poweroff"
|
||||
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
|
@ -1,5 +1,3 @@
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# ~/.zshrc.d/functions.zsh
|
||||
|
||||
## Do an ls after cd
|
||||
@ -62,3 +60,18 @@ license() {
|
||||
res=$(curl --silent --header $headers $base_url/$license | jq ."body")
|
||||
echo -e $res | tr -d '"'
|
||||
}
|
||||
|
||||
nmap_ssh() {
|
||||
if sudo podman image exists localhost/nmap; then
|
||||
sudo podman run -it --rm \
|
||||
--cap-add=NET_RAW \
|
||||
--cap-add=NET_ADMIN \
|
||||
--network host \
|
||||
--name nmap \
|
||||
nmap -sV -p 22 -open 10.0.0.0/24
|
||||
else
|
||||
echo "localhost/nmap image does not exist"
|
||||
fi
|
||||
}
|
||||
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
|
@ -1,5 +1,3 @@
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# ~/.zshrc.d/fzf.zsh
|
||||
|
||||
## default opts uses Catppuccin (mocha) color palette
|
||||
@ -13,3 +11,5 @@ export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
|
||||
|
||||
## keybinding for fzf-marks
|
||||
bindkey '\eg' fzm
|
||||
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
|
@ -1,18 +1,23 @@
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
#
|
||||
# ~/.zshrc.d/input.zsh
|
||||
|
||||
$include /etc/inputrc
|
||||
bindkey -v
|
||||
|
||||
typeset -g -A key
|
||||
|
||||
key[Home]="${terminfo[khome]}"
|
||||
key[End]="${terminfo[kend]}"
|
||||
|
||||
[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line
|
||||
[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line
|
||||
|
||||
if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
||||
autoload -Uz add-zle-hook-widget
|
||||
function zle_application_mode_start { echoti smkx }
|
||||
function zle_application_mode_stop { echoti rmkx }
|
||||
add-zle-hook-widget -Uz zle-line-init zle_application_mode_start
|
||||
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
||||
fi
|
||||
|
||||
## history substring search
|
||||
bindkey '^[[1;5A' history-substring-search-up
|
||||
bindkey '^[[1;5B' history-substring-search-down
|
||||
|
||||
# vim:set ft=zsh ai et sw=4 ts=4:
|
||||
|
Loading…
Reference in New Issue
Block a user