aboutsummaryrefslogtreecommitdiff
path: root/internal/icons.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-20 12:22:14 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-20 12:22:14 +0300
commit0067e0d4a1148593e3d74640579e555439ee9426 (patch)
treed4eb7c579693d5bfb29abac5ba13371309ca6bf9 /internal/icons.zsh
parent5f15731c6ae0380fadcb55cc3d213c577cfd3a8d (diff)
survive emulate sh; fixes #226
Diffstat (limited to 'internal/icons.zsh')
-rwxr-xr-xinternal/icons.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/icons.zsh b/internal/icons.zsh
index 351a5b12..918b0565 100755
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -540,7 +540,8 @@ function _p9k_init_icons() {
# Sadly, this is a part of public API. Its use is emphatically discouraged.
function print_icon() {
- emulate -L zsh && setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
+ emulate -L zsh
+ setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
_p9k_init_icons
[[ -z $_p9k_locale ]] || local LC_ALL=$_p9k_locale
local icon_name=$1
@@ -558,7 +559,8 @@ function print_icon() {
# otherwise "print_icon" is used, which takes the users
# overrides into account.
function get_icon_names() {
- emulate -L zsh && setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
+ emulate -L zsh
+ setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
_p9k_init_icons
[[ -z $_p9k_locale ]] || local LC_ALL=$_p9k_locale
# Iterate over a ordered list of keys of the icons array