Added TL;DR to print only exported variables

This commit is contained in:
Michele Cereda
2022-12-29 21:46:49 +01:00
parent 29fadd0cd6
commit 2a1f3e5783
2 changed files with 8 additions and 2 deletions

View File

@@ -10,6 +10,9 @@ function functionName { … }
# Declare functions on a single line.
functionName () { command1 ;; command N ; }
# Print exported variables only.
export -p
# Run a command or function on exit, kill or error.
trap "rm -f $tempfile" EXIT SIGTERM ERR
trap function-name EXIT SIGTERM ERR

View File

@@ -23,8 +23,8 @@
9. [Frameworks](#frameworks)
10. [Plugins](#plugins)
11. [Troubleshooting](#troubleshooting)
1. [The delete, end and/or home keys are not working as intended](#the-delete-end-andor-home-keys-are-not-working-as-intended)
2. [Compinit warnings of insecure directories and files](#compinit-warnings-of-insecure-directories-and-files)
1. [The delete, end and/or home keys are not working as intended](#the-delete-end-andor-home-keys-are-not-working-as-intended)
2. [Compinit warnings of insecure directories and files](#compinit-warnings-of-insecure-directories-and-files)
12. [Further readings](#further-readings)
## TL;DR
@@ -71,6 +71,9 @@ ls **/*(-@)
# Print all shell and environment variables.
setopt posixbuiltins && set
# Print exported variables only.
export -p
# Make entries unique in an array.
typeset -aU path