From 701038dc50a3d6a1a89d084ec497c787572155ee Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 2 Dec 2021 15:21:47 +0100 Subject: [PATCH 1/5] [alias] enforce rsync to show progress --- .config/aliasrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/aliasrc b/.config/aliasrc index d984523..223bbfe 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -4,6 +4,7 @@ alias cp='cp -v' alias mv='mv -v' alias rm='rm -v' +alias rsync='rsync --progress' alias grep='grep --color=auto' alias ls='ls --color=auto' alias ll='ls -lh' From 7fe8e25f1e8ed76c847005bc76b0a457de0e9ccf Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Tue, 23 Nov 2021 01:06:56 +0100 Subject: [PATCH 2/5] [scripts] feat : fetch infos more robust on wm --- .local/bin/fetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/fetch b/.local/bin/fetch index d45ccc5..254c08b 100755 --- a/.local/bin/fetch +++ b/.local/bin/fetch @@ -18,8 +18,8 @@ os='Arch Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename "$SHELL")" -wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)" +shell="$($SHELL --version | sed -e 's/(.*)//')" +wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | rev | cut -d ' ' -f 1 | rev)" # parse the '/proc/meminfo' file splitting on ':' and 'k'. # the format of the file is 'key: 000kB' and an additional From 406a24d127227f27d7efc56670d3d62b00952a9b Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 2 Dec 2021 15:33:22 +0100 Subject: [PATCH 3/5] [nvim] format: move comment to the right --- .config/nvim/lua/lsp/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/lsp/init.lua b/.config/nvim/lua/lsp/init.lua index 6632694..4fbc92a 100644 --- a/.config/nvim/lua/lsp/init.lua +++ b/.config/nvim/lua/lsp/init.lua @@ -74,7 +74,7 @@ function M.setup() local ft = vim.bo.filetype if ft == "cpp" then ft = "c" end - require("lsp." .. ft) -- ./.lua + require("lsp." .. ft) -- ./.lua end return M From e8dfccb5d86f969de734be03377abf0657fb558e Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 2 Dec 2021 15:34:15 +0100 Subject: [PATCH 4/5] [nvim] fix: leave netrw alone netrw used to be prevented from loading. It may prove useful, so it's back in business --- .config/nvim/lua/settings.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 03ab9cd..08d21e9 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -16,7 +16,6 @@ opt.wildignore = { } opt.wildmode = { "longest", "full" } opt.wildoptions = "pum" -g.loaded_netrw = 1 -- disable netrw -- editor opt.lazyredraw = true From e842d326dad99fb4a61552adff17fd35b2b79de3 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Thu, 2 Dec 2021 15:35:05 +0100 Subject: [PATCH 5/5] [scripts] fix: tsession --- .local/bin/tsession | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/tsession b/.local/bin/tsession index a631648..7133f1a 100755 --- a/.local/bin/tsession +++ b/.local/bin/tsession @@ -4,6 +4,6 @@ session="$1" cmd="$2" tmux new -s $session -d -tmux send-keys -t $session "exec $cmd" C-m +tmux send-keys -t $session "$cmd && exit" C-m tmux attach -t $session