add inputrc

This commit is contained in:
TheK4n 2023-06-23 12:34:12 +03:00
parent 6c30b9d5da
commit 8380b97769
5 changed files with 9 additions and 3 deletions

View File

@ -210,6 +210,8 @@ local plugins = {
update_on_change = true, update_on_change = true,
app = 'webview', app = 'webview',
filetype = {'markdown'}, filetype = {'markdown'},
throttle_at = 200000,
throttle_time = 'auto',
vim.keymap.set('n', '<Leader>rr', "<cmd>lua require('peek').open()<CR>", {noremap=true, silent=true}) vim.keymap.set('n', '<Leader>rr', "<cmd>lua require('peek').open()<CR>", {noremap=true, silent=true})
}) })
end, end,

3
home/user/.inputrc Normal file
View File

@ -0,0 +1,3 @@
set editing-mode vi
set keymap vi
set convert-meta on

View File

@ -67,11 +67,12 @@ class CustomPrompt(Prompts):
c = get_config() c = get_config()
c.TerminalInteractiveShell.editing_mode="vi"
c.TerminalInteractiveShell.prompts_class = CustomPrompt c.TerminalInteractiveShell.prompts_class = CustomPrompt
c.TerminalInteractiveShell.separate_in = '' c.TerminalInteractiveShell.separate_in = ''
c.TerminalInteractiveShell.confirm_exit = False c.TerminalInteractiveShell.confirm_exit = False
c.TerminalIPythonApp.display_banner = False c.TerminalIPythonApp.display_banner = False
c.AliasManager.user_aliases = [ c.AliasManager.user_aliases = [
('la', 'ls -al') ('la', 'ls -al'),
] ]

View File

@ -117,4 +117,4 @@ elif [[ "$OSTYPE" == "darwin" ]]; then
alias paste='pbpaste' alias paste='pbpaste'
fi fi
alias black='feh -F ~/Pictures/black.png' alias black='feh -YF ~/Pictures/black.png'

View File

@ -9,7 +9,7 @@ SUB="$(pwd)/home/user"
declare -A TARGETS=( declare -A TARGETS=(
["bash"]=".subbash .bashrc .profile" ["bash"]=".subbash .bashrc .profile"
["zsh"]=".subbash .subzsh .zshrc .zprofile .zfunc .zlogout" ["zsh"]=".subbash .subzsh .zshrc .zprofile .zfunc .zlogout .inputrc"
["tmux"]=".tmux.conf" ["tmux"]=".tmux.conf"
["alacritty"]=".config/alacritty" ["alacritty"]=".config/alacritty"
["nvim"]=".config/nvim .local/bin/vim_askpass_helper .local/bin/vim_askpass_helper_python" ["nvim"]=".config/nvim .local/bin/vim_askpass_helper .local/bin/vim_askpass_helper_python"