summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-14 11:13:13 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-14 11:13:13 +0300
commitb436963816aff88e19c82f72a12f8e09c78351b8 (patch)
treecb8771266793ea5509baef61541f3b6c05cbe54c /scripts
parent667ce7984dac3a2c80c6e55857c0ae20617a96ce (diff)
Scripts: added directory, includes nvim tmux undercurl fix
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nvim.sh3
-rwxr-xr-xscripts/zypper_rm_unused.sh6
2 files changed, 9 insertions, 0 deletions
diff --git a/scripts/nvim.sh b/scripts/nvim.sh
new file mode 100755
index 0000000..52ccefb
--- /dev/null
+++ b/scripts/nvim.sh
@@ -0,0 +1,3 @@
+#!/bin/zsh
+
+TERM=tmux-256color nvim "$@"
diff --git a/scripts/zypper_rm_unused.sh b/scripts/zypper_rm_unused.sh
new file mode 100755
index 0000000..98a0f2e
--- /dev/null
+++ b/scripts/zypper_rm_unused.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Copied from somewhere on the internet
+zypper packages --unneeded | awk -F'|' 'NR==0 || NR==1 || NR==2 || NR==3 || NR==4 {next} {print $3}' > list
+while read p; do zypper info $p && zypper se --requires $p && zypper rm $p; done < list
+rm -rf list