mirror of
https://github.com/don-philipe/dotfiles.git
synced 2026-09-08 06:38:52 +02:00
Compare commits
3
Commits
0b39cde596
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
345b7bd08c | ||
|
|
01e9bd37c7 | ||
|
|
a65784223d |
@@ -4,6 +4,7 @@ vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Telescope live gr
|
|||||||
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' })
|
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Telescope buffers' })
|
||||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })
|
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })
|
||||||
vim.keymap.set('n', '<leader>ft', builtin.treesitter, { desc = 'Telescope treesitter picker' })
|
vim.keymap.set('n', '<leader>ft', builtin.treesitter, { desc = 'Telescope treesitter picker' })
|
||||||
|
vim.keymap.set('n', '<leader>fw', function() require('telescope.builtin').grep_string() end, { desc = 'Telescope cursor picker' })
|
||||||
-- find selected text in visual mode with Ctrl-f via telescope:
|
-- find selected text in visual mode with Ctrl-f via telescope:
|
||||||
vim.keymap.set('v', '<C-f>', 'y<ESC>:Telescope live_grep default_text=<C-r>0<CR>', default_opts)
|
vim.keymap.set('v', '<C-f>', 'y<ESC>:Telescope live_grep default_text=<C-r>0<CR>', default_opts)
|
||||||
|
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ autotmux()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
checkpem()
|
|
||||||
{
|
|
||||||
openssl x509 -in "$1" -noout -text
|
|
||||||
}
|
|
||||||
checkcert()
|
checkcert()
|
||||||
{
|
{
|
||||||
openssl s_client -connect "$1":443 2>/dev/null
|
openssl s_client -connect "$1":443 2>/dev/null
|
||||||
}
|
}
|
||||||
|
showcert()
|
||||||
|
{
|
||||||
|
openssl x509 -in "$1" -noout -text
|
||||||
|
}
|
||||||
pem2crt()
|
pem2crt()
|
||||||
{
|
{
|
||||||
openssl x509 -inform PEM -in "$1" -out "${1%.*}.crt"
|
openssl x509 -inform PEM -in "$1" -out "${1%.*}.crt"
|
||||||
|
|||||||
Reference in New Issue
Block a user