mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
Transition from my neovim config to LunarVim
This commit is contained in:
parent
e3fa73c712
commit
4c57b36f1b
16 changed files with 128 additions and 342 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
sudo pacman -Syyuu --noconfirm
|
||||
yay -Sua --noconfirm
|
||||
sudo pacman -Rs $(pacman -Qdtq) --noconfirm
|
||||
sudo pacman -Rs $(pacman -Qdtq) --noconfirm
|
||||
|
|
|
|||
34
bin/catfetch
34
bin/catfetch
|
|
@ -1,34 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Kernel version
|
||||
kernel=$(cat /proc/sys/kernel/osrelease | cut -d '-' -f1)
|
||||
|
||||
# Window manager
|
||||
[ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && {
|
||||
wmname="$(xprop -id $(xprop -root -notype\
|
||||
| awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t\
|
||||
| grep "WM_NAME"\
|
||||
| cut -f2 -d \")"
|
||||
}
|
||||
|
||||
# Shell
|
||||
shell=$(basename $SHELL)
|
||||
|
||||
# Installed packages
|
||||
manager=$(which apt pacman yay 2>/dev/null)
|
||||
manager=${manager##*/}
|
||||
case "$manager" in
|
||||
apt) packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)" ;;
|
||||
yay) packages="$(yay -Q | wc -l)" ;;
|
||||
pacman) packages="$(pacman -Q | wc -l)" ;;
|
||||
esac
|
||||
|
||||
# Text decorations
|
||||
bold=$(tput bold)
|
||||
reset="\e[0m"
|
||||
blue="\e[36m"
|
||||
|
||||
echo -e " ${blue}${bold} WM ${reset}${wmname}"
|
||||
echo -e " /\_/\ ${blue}${bold} SHELL ${reset}${shell}"
|
||||
echo -e " (=^.^=) ${blue}${bold}KERNEL ${reset}${kernel}"
|
||||
echo -e " (\") (\")_/ ${blue}${bold} PKG ${reset}${packages}"
|
||||
18
bin/extract
18
bin/extract
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
case "$1" in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) unrar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1 ;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*.deb) ar x $1 ;;
|
||||
*.tar.xz) tar xf $1 ;;
|
||||
*.tar.zst) unzstd $1 ;;
|
||||
*) echo "'$1' is not a valid file" ;;
|
||||
esac
|
||||
4
bin/giti
4
bin/giti
|
|
@ -32,11 +32,11 @@ function show() {
|
|||
case "$1" in
|
||||
add|a) shift; add "$@" ;;
|
||||
del|d) shift; del "$@" ;;
|
||||
mv) shift; edit "$@" ;;
|
||||
mv|m) shift; edit "$@" ;;
|
||||
show) shift; show ;;
|
||||
help) echo "add|a - [file name] add to ignore."
|
||||
echo "del|d - [file name] delete from ignore."
|
||||
echo "mv - [old] [new] file name for rename."
|
||||
echo "mv|m - [old] [new] file name for rename."
|
||||
echo "show - show ignore file." ;;
|
||||
*) echo "Command is not valid. Type 'giti help' for help." ;;
|
||||
esac
|
||||
|
|
|
|||
2
bin/ipp
2
bin/ipp
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
curl ifconfig.co
|
||||
Loading…
Add table
Add a link
Reference in a new issue