You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Add initials of current mob to `PS1`, in `~/.bashrc`
180
+
### Add initials of current mob to your prompt
181
+
182
+
#### Bash
183
+
184
+
Add the initials to `PS1`, in `~/.bashrc`
181
185
182
186
```bash
183
187
functiongit_initials {
@@ -190,6 +194,23 @@ function git_initials {
190
194
export PS1="\$(pwd)\$(git_initials) -> "
191
195
```
192
196
197
+
#### Fish
198
+
199
+
Add the following functions to `.config/fish/config.fish`
200
+
201
+
```fish
202
+
function git_initials --description 'Print the initials for who I am currently pairing with'
203
+
set -lx initials (git mob-print --initials)
204
+
if test -n "$initials"
205
+
printf ' [%s]' $initials
206
+
end
207
+
end
208
+
209
+
function fish_prompt
210
+
printf "%s%s ->" (pwd) (git_initials)
211
+
end
212
+
```
213
+
193
214
<sup>\*[If you have git-duet installed, you'll need to uninstall it](https://github.com/findmypast-oss/git-mob/issues/2) since it conflicts with the git-solo command.</sup>
0 commit comments