diff --git a/conf.d/nvim/dashboard.lua b/conf.d/nvim/dashboard.lua index 20e2a6b..d4cf563 100644 --- a/conf.d/nvim/dashboard.lua +++ b/conf.d/nvim/dashboard.lua @@ -19,48 +19,54 @@ local db = require('dashboard') -- db.center_pad -- number type default is 1 -- db.footer_pad -- number type default is 1 -local dotfiles = home .. '/dotfiles' +local dotfiles = '\'' .. home .. '/dotfiles\'' -db.custom_header = { - '', - ' ⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂ ', - ' ⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕ ', - ' ⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂ ', - ' ⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂ ', - ' ⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔ ', - ' ⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿ ', - ' ⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿ ', - ' ⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃ ', - ' ⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈ ', - ' ⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈ ', - ' ⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈ ', - ' ⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈ ', - ' ⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈ ', - ' ⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈ ', - '', -} +db.preview_command = 'cat | lolcat' +db.preview_file_path = home .. '/.config/nvim/header1.cat' +db.preview_file_height = 16 +db.preview_file_width = 32 + +-- db.custom_header = { +-- '', +-- ' ⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂ ', +-- ' ⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕ ', +-- ' ⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂ ', +-- ' ⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂ ', +-- ' ⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔ ', +-- ' ⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿ ', +-- ' ⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿ ', +-- ' ⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃ ', +-- ' ⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈ ', +-- ' ⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈ ', +-- ' ⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈ ', +-- ' ⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈ ', +-- ' ⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈ ', +-- ' ⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈ ', +-- '', +-- } db.custom_center = { { icon = nil, desc = 'Nouveau fichier ', action = 'DashboardNewFile', - shortcut = 'SPC f n' + shortcut = ';fn' }, { desc = 'Trouver un fichier ', action = "lua require('telescope.builtin').find_files()", - shortcut = 'SPC f f' + shortcut = ';ff' }, { desc = 'Fichiers récemment ouverts ', action = "lua require('telescope.builtin').oldfiles()", - shortcut = 'SPC f h' + shortcut = ';fo' }, { desc = 'Parcourir les dotfiles ', - action = "lua require('telescope.builtin').find_files({ cwd = \'" .. dotfiles .. "\' })", - shortcut = 'SPC f d' + -- action = "lua require('telescope.builtin').find_files({ cwd = " .. dotfiles .. " })", + action = 'Telescope dotfiles path=' .. dotfiles, + shortcut = ';fd' }, } diff --git a/conf.d/nvim/header1.cat b/conf.d/nvim/header1.cat new file mode 100644 index 0000000..7eefeb9 --- /dev/null +++ b/conf.d/nvim/header1.cat @@ -0,0 +1,16 @@ + + ⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂ + ⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕ + ⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂ + ⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂ + ⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔ + ⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿ + ⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿ + ⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃ + ⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈ + ⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈ + ⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈ + ⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈ + ⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈ + ⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈ + diff --git a/conf.d/nvim/keybindings.vim b/conf.d/nvim/keybindings.vim index d73a886..019f0c7 100644 --- a/conf.d/nvim/keybindings.vim +++ b/conf.d/nvim/keybindings.vim @@ -64,9 +64,12 @@ map :saveas " \ ) command -bang CloseBuffer :call CloseBuffer() -map :echom 'Close buffer' :CloseBuffer! +map ff lua require('telescope.builtin').find_files() +map fd lua require('telescope.builtin').find_files({ cwd = '/home/jeff/dotfiles' }) +map fo lua require('telescope.builtin').oldfiles() +map cn :echom 'Nouveau buffer' :DashboardNewFile map :e -map :DashboardNewFile +map :echom 'Fermeture buffer' :CloseBuffer! map :bn map :bp @@ -91,22 +94,11 @@ map :call WinMove('l') nmap ss :SessionSave nmap sl :SessionLoad -nnoremap fh :DashboardFindHistory -nnoremap ff lua require('telescope.builtin').find_files() -nnoremap tc :DashboardChangeColorscheme -nnoremap fa :DashboardFindWord -nnoremap fb :DashboardJumpMark -nnoremap cn :DashboardNewFile " ----- " }}} -" Find file {{{ -" ----- - -map lua require('telescope.builtin').find_files() - " ----- " }}} diff --git a/conf.d/zim/zshrc b/conf.d/zim/zshrc index 7642460..f9eacb8 100644 --- a/conf.d/zim/zshrc +++ b/conf.d/zim/zshrc @@ -128,18 +128,34 @@ bindkey -M vicmd 'j' history-substring-search-down # >>> tmux initialization >>> # -# if [[ $DISPLAY ]]; then -# # If not running interactively, do not do anything -# [[ $- != *i* ]] && return +# if [ -z "$TMUX" ]; then +# # we're not in a tmux session -# if [[ -z "$TMUX" ]] ;then -# ID="$( tmux ls | grep -vm1 attached | cut -d: -f1 )" # get the id of a deattached session -# if [[ -z "$ID" ]] ;then # if not available create a new one -# tmux new-session -# else -# tmux attach-session -t "$ID" # if available attach to it -# fi -# fi +# if [ ! -z "$SSH_TTY" ]; then +# # We logged in via SSH + +# # if ssh auth variable is missing +# if [ -z "$SSH_AUTH_SOCK" ]; then +# export SSH_AUTH_SOCK="$HOME/.ssh/.auth_socket" +# fi + +# # if socket is available create the new auth session +# if [ ! -S "$SSH_AUTH_SOCK" ]; then +# `ssh-agent -a $SSH_AUTH_SOCK` > /dev/null 2>&1 +# echo $SSH_AGENT_PID > $HOME/.ssh/.auth_pid +# fi + +# # if agent isn't defined, recreate it from pid file +# if [ -z $SSH_AGENT_PID ]; then +# export SSH_AGENT_PID=`cat $HOME/.ssh/.auth_pid` +# fi + +# # Add all default keys to ssh auth +# ssh-add 2>/dev/null + +# # start tmux +# tmux attach +# fi # fi # <<< tmux initialization <<< diff --git a/conf/msmtprc b/conf/msmtprc index 10baca0..fb3e05e 100644 --- a/conf/msmtprc +++ b/conf/msmtprc @@ -3,7 +3,7 @@ defaults auto_from on tls_trust_file /etc/ssl/certs/ca-certificates.crt syslog on -logfile /var/log/msmtp.log +# logfile /var/log/msmtp.log # MaLa account jeff.lance@mala.fr