aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/scripts/get_zle_keymap_select.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-08-06 23:01:08 +0200
committersrdusr <trevorgray@srdusr.com>2023-08-06 23:01:08 +0200
commit4dfe75ca5ed81a15db036a294fe2a36243413e19 (patch)
treebdd5acbec857240e352f04510e1260ab2c9994f3 /.local/bin/scripts/get_zle_keymap_select.sh
parent7b13d618f5a90deb36367480ed4c70876fa41095 (diff)
parent692db3d7b9b80c1849b283738f6a2fe61ea0cdd2 (diff)
downloaddotfiles-4dfe75ca5ed81a15db036a294fe2a36243413e19.tar.gz
dotfiles-4dfe75ca5ed81a15db036a294fe2a36243413e19.zip
Merge commit '7f5e37f9dc4f834aecdc3f76652d79c0a1d842b0'
Diffstat (limited to '.local/bin/scripts/get_zle_keymap_select.sh')
-rwxr-xr-x.local/bin/scripts/get_zle_keymap_select.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/scripts/get_zle_keymap_select.sh b/.local/bin/scripts/get_zle_keymap_select.sh
new file mode 100755
index 0000000..1e2eaf4
--- /dev/null
+++ b/.local/bin/scripts/get_zle_keymap_select.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Get the value of the zle-keymap-select variable
+value=$(print -v zle-keymap-select)
+
+# Specify the file path to save the value
+file_path="~/file.txt"
+
+# Write the value to the file
+echo "$value" > "$file_path"
+
+# Optionally, you can also print the value to the console
+echo "The value of zle-keymap-select is: $value"