zsh-setup1
- change oh-my-zsh theme to
powerlevel10k/powerlevel10k
- add the following code block before the last line (powerlevel10k requirement)
# import my own files
ZSHCONFIG="path to zsh config files (without any quotes)"
for config in ${ZSHCONFIG}*.zsh; do
source "${config}"
done
unset config
ZSHFUNCT="path to zsh function files (without any quotes)"
for funct in ${ZSHFUNCT}*.zsh; do
source "${funct}"
done
unset funct
- classic prompt style
- unicode
- darkest
- no time
- angled separators
- sharp heads
- flat tails
- one line prompt
- compact line spacing
- few icons
- concise prompt flow
- enable transient prompt
- uncomment
vpn_ip
(right prompt element) to enable vpn indicator - set command execution time threshold to
0
- set command execution time precision to
2
- set vcs branch icon to
'\uF126 '
file | content |
---|---|
aliases.zsh |
command aliases for default flags, shortcuts, replacements |
environment.zsh |
environment variables |
options.zsh |
zsh options and settings |
path.zsh |
additions to $PATH and similar variables |
file | group | action |
---|---|---|
01_decryptfile.zsh |
01 - encrypting and decrypting files with gpg /gnupg |
decrypting a file |
01_encryptfile.zsh |
⬆︎ | encrypting a file |
01_tmpdecryptfile.zsh |
⬆︎ | non-persistently decrypting a file and only displaying its contents |
02_gitignore.zsh |
02 - creating comprehensive .gitignore files via a public API | returns output of API according to parameters (usually write to file) |
03_externalmonitor.zsh |
03 - opening and closing useful apps when using external monitors | opens relevant apps |
03_internalmonitor.zsh |
⬆︎ | closes relevant apps |
04_appidentifier.zsh |
04 - displaying the macOS bundle identifier of apps | returns bundle identifier |
05_cleanhelpers.zsh |
05 - creating clean zip & tar files (by excluding hidden files/directories and macOS-specific special files) | helper functions for cleantar & cleanzip |
05_cleantar.zsh |
⬆︎ | creates a clean tar archive |
05_cleanzip.zsh |
⬆︎ | creates a clean zip archive |
06_checkhash.zsh |
06 - computing file hashes (and optionally checking it against a provided hash) | returns file hashes or comparison result |
07_pwgen.zsh |
07 - generating random passwords of desired length in base64 encoding | returns randomly generated password |
08_setname.zsh |
08 - setting the file name of photos/videos to one of the timestamps embedded in the metadata tags | updates image filename(s) according to user selection |
Footnotes
-
my system is macOS, YMMV on other platforms ↩