feat: am -a, remove MOZ_ENABLE_WAYLAND, cleanup
This commit is contained in:
parent
6209d7889d
commit
1cfdbe4c7e
@ -1,5 +1,3 @@
|
|||||||
-- packages
|
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
vim.opt_local.colorcolumn = "50"
|
vim.opt_local.colorcolumn = "50"
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
-- packages
|
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
vim.opt_local.shiftwidth = 2
|
vim.opt_local.shiftwidth = 2
|
||||||
vim.opt_local.tabstop = 2
|
vim.opt_local.tabstop = 2
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
-- packages
|
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
vim.opt_local.shiftwidth = 2
|
vim.opt_local.shiftwidth = 2
|
||||||
vim.opt_local.tabstop = 2
|
vim.opt_local.tabstop = 2
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
-- packages
|
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
vim.cmd("let g:black_linelength=79")
|
vim.g.black_linelength = 79
|
||||||
|
|
||||||
-- keybindings
|
-- keybindings
|
||||||
vim.keymap.set("n", "<Leader>f", "<cmd>Black<CR>", {buffer=true})
|
vim.keymap.set("n", "<Leader>f", "<cmd>Black<CR>", {buffer=true})
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
-- packages
|
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
vim.opt_local.shiftwidth = 2
|
vim.opt_local.shiftwidth = 2
|
||||||
vim.opt_local.tabstop = 2
|
vim.opt_local.tabstop = 2
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
-- packages
|
|
||||||
|
|
||||||
-- variables
|
-- variables
|
||||||
vim.opt_local.shiftwidth = 2
|
vim.opt_local.shiftwidth = 2
|
||||||
vim.opt_local.tabstop = 2
|
vim.opt_local.tabstop = 2
|
||||||
|
@ -49,6 +49,7 @@ require"theme"
|
|||||||
|
|
||||||
require"pack-dirdiff"
|
require"pack-dirdiff"
|
||||||
require"pack-easy-align"
|
require"pack-easy-align"
|
||||||
|
require"pack-grammalecte"
|
||||||
require"pack-indent-blankline"
|
require"pack-indent-blankline"
|
||||||
require"pack-lspconfig"
|
require"pack-lspconfig"
|
||||||
require"pack-telescope"
|
require"pack-telescope"
|
||||||
|
3
.config/nvim/lua/pack-grammalecte.lua
Normal file
3
.config/nvim/lua/pack-grammalecte.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
vim.cmd("packadd grammalecte")
|
||||||
|
|
||||||
|
vim.g.grammalecte_cli_py = "/usr/bin/grammalecte-cli"
|
1
.config/nvim/pack/plugins/opt/grammalecte
Submodule
1
.config/nvim/pack/plugins/opt/grammalecte
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a0ce51a77e56151f62ddbfd10e7dec46000f2848
|
@ -1 +1 @@
|
|||||||
Subproject commit 9f7eed8133d62457f7ad2ca250eb9b837a4adeb7
|
Subproject commit c90e273f7b8c50a02f956c24ce4804a47f18162e
|
@ -1 +1 @@
|
|||||||
Subproject commit 42ca8ce0f2252be795da4789fadfa91f6c3f7464
|
Subproject commit 6b43ce561d97412cc512b569db6938e44529293e
|
@ -1 +1 @@
|
|||||||
Subproject commit e960efa60e97df58e089b00270f09d60f27202c8
|
Subproject commit a606bd10c79ec5989c76c49cc6f736e88b63f0da
|
@ -1 +1 @@
|
|||||||
Subproject commit fb36ed4c9e962d9fbfa608cd4a5d9313b1e8a8b1
|
Subproject commit b019eb30323635d680aa2f32e498a1831676ebb1
|
@ -1 +1 @@
|
|||||||
Subproject commit a3c579bf27b34942d4c6ad64e7cfd75788b05ea3
|
Subproject commit 55e4e6c73b2bb067974c6d49ba9da2ba1ee3295c
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -34,3 +34,6 @@
|
|||||||
[submodule ".config/zsh/custom/themes/powerlevel10k"]
|
[submodule ".config/zsh/custom/themes/powerlevel10k"]
|
||||||
path = .config/zsh/custom/themes/powerlevel10k
|
path = .config/zsh/custom/themes/powerlevel10k
|
||||||
url = https://github.com/romkatv/powerlevel10k.git
|
url = https://github.com/romkatv/powerlevel10k.git
|
||||||
|
[submodule ".config/nvim/pack/plugins/opt/grammalecte"]
|
||||||
|
path = .config/nvim/pack/plugins/opt/grammalecte
|
||||||
|
url = https://github.com/dpelle/vim-Grammalecte.git
|
||||||
|
2
.zshenv
2
.zshenv
@ -15,6 +15,4 @@ export ZLE_RPROMPT_INDENT=0
|
|||||||
|
|
||||||
export LESSHISTFILE='-'
|
export LESSHISTFILE='-'
|
||||||
|
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
|
||||||
|
|
||||||
export EDITOR='nvim'
|
export EDITOR='nvim'
|
||||||
|
30
bin/am
30
bin/am
@ -2,10 +2,10 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
# - mount all partitions by selecting disk
|
# mount all partitions by selecting disk
|
||||||
# - usage
|
# usage
|
||||||
# - support for /mnt
|
# support for /mnt
|
||||||
# - colors ?
|
# error handling (fs in use...)
|
||||||
|
|
||||||
function clear_output() {
|
function clear_output() {
|
||||||
local len="$1"
|
local len="$1"
|
||||||
@ -19,10 +19,30 @@ if ! [ -t 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COLUMNS=1
|
function umount_all() {
|
||||||
|
local disks
|
||||||
|
|
||||||
|
disks=($(mount | grep udisks2 | cut -f1 -d' '))
|
||||||
|
umount "${disks[@]}"
|
||||||
|
echo "unmounted ${disks[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
while getopts a o; do
|
||||||
|
case "$o" in
|
||||||
|
a)
|
||||||
|
umount_all
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
#readarray -t LSBLK <<< "$(lsblk -n --paths | grep -v snap)"
|
||||||
readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)"
|
readarray -t LSBLK <<< "$(lsblk -n --paths --list | grep part)"
|
||||||
|
|
||||||
|
COLUMNS=1
|
||||||
select dev in "${LSBLK[@]}"; do
|
select dev in "${LSBLK[@]}"; do
|
||||||
name="$(cut -f1 -d' ' <<< "$dev")"
|
name="$(cut -f1 -d' ' <<< "$dev")"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user