mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added TL;DR to print only exported variables
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user