File tree Expand file tree Collapse file tree 5 files changed +43
-0
lines changed
dot_config/zsh/exact_private_zsh.d Expand file tree Collapse file tree 5 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ Personal information
103103{{- $last_name := onepasswordRead (printf " %s /last name" $identity_entry ) -}}
104104{{- $ghuser := onepasswordRead (printf " %s /github" $identity_entry ) -}}
105105{{- $full_name := printf " %s %s " $first_name $last_name -}}
106+ {{- $hishtory_server := onepasswordRead " op://dotfiles/Hishtory Config/server" -}}
106107
107108{{- /* Data: keep this here for the newline */ }}
108109[data]
@@ -115,6 +116,7 @@ Personal information
115116 is_linux = {{ $is_linux }}
116117 is_work = {{ $is_work }}
117118 copy_command = {{ if $is_macos }}" pbcopy" {{ else }}" xsel --clipboard --input" {{ end }}
119+ hishtory_server = {{ $hishtory_server | quote }}
118120
119121
120122{{/*
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ softwarePackages:
7878 brew : yq
7979 eget :
8080 source : mikefarah/yq
81+ hishtory :
82+ homepage : https://github.com/ddworken/hishtory
83+ brew : hishtory
8184 zoxide :
8285 brew : zoxide
8386 eget :
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # {{ template "dotfiles_bashlib.sh" . }}
4+
5+ # Help shellcheck identify the above include
6+ true || source ../.chezmoitemplates/dotfiles_bashlib.sh
7+
8+ dot::chezmoi_script_start " setup of hishtory"
9+
10+ if ! dot::has_command hishtory; then
11+ dot::chezmoi_script_skipped " hishtory is not installed"
12+ fi
13+
14+ if [[ -f " ${HOME} /.hishtory/config.sh" ]]; then
15+ dot::chezmoi_script_skipped " hishtory is already configured"
16+ fi
17+
18+ dot::step::start " initializing hishtory shell integration"
19+ hishtory install --skip-config-modification || dot::step::fatal
20+ dot::step::done
21+
22+ dot::success " hishtory configured"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env zsh
2+
3+ # Initialize hishtory - better shell history
4+ # https://github.com/ddworken/hishtory
5+
6+ export HISHTORY_SERVER={{ .hishtory_server | quote }}
7+
8+ [[ -f ~ /.hishtory/config.zsh ]] && source ~ /.hishtory/config.zsh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Initialize hishtory - better shell history
4+ # https://github.com/ddworken/hishtory
5+
6+ export HISHTORY_SERVER={{ .hishtory_server | quote }}
7+
8+ [[ -f ~ /.hishtory/config.sh ]] && source ~ /.hishtory/config.sh
You can’t perform that action at this time.
0 commit comments