-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path📜
73 lines (50 loc) · 1.85 KB
/
📜
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# 🚲🙊🌻⛅️🌵🐸🎩🐳⚡️🍀🎃🌚🐙📼
Get some emoji in your prompt!
### Install 💪
```bash
curl https://raw.githubusercontent.com/smurthas/psemoji/master/$(python -c 'import urllib; print urllib.quote_plus("👍")') | bash
```
The install script will set up a cronjob that will pull down weather info and
add an `export PS=` line to your `~/.profile`. 👌
### Emojeez
(if you aren't on Safari, [click here](https://raw.githubusercontent.com/smurthas/psemoji/master/screenshot.png))
**EVERYTHING!!**
```bash
export PS1=$PSE_STANDARD$PS1
❗️🔋 (7%)🌖 62°☁️ 🚧 #and then whatever was already in your prompt
```
**Moon cycle, holidays, and beer-o-clock reminders!**
```
export PS1=$PSE_CHRONO$PS1
🌔 20:20:35 🏠/psemoji:
🍻 🌗 17:03:51 🏠/psemoji:
```
**Local weather!**
```
export PS1=$PSE_WEATHER$PS1
🌔 20:20:35 46°⛅️ 🏠/psemoji:
```
**Non-zero exit codes → ❗️, Low battery, and read-only directory warnings!**
```
export PS1=$PSE_WARNINGS$PS1
❗️🔒🔋(3%)🌔 20:20:35 46°⛅️ /opt:
```
### Directory Aliases
If you are using the `$PSE_DIR_[1-5]` (or the `$PSE_STANDARD`) `PS1` variable, you
can set emoji display aliases for certain directories:
```bash
cd $HOME
psemoji alias set 🏡
# maybe you want to set another for a developer workspace directory
cd /path/to/my/dev/space
psemoji alias set 🚧
```
Now the `$PS1_DIR_[1-5]` section of your prompt will display 🏡 instead of `~`
and 🚧 instead of `/path/to/my/dev/dir`.
You can see all of the aliases you have set with `psemoji alias list`.
You can also remove an alias with `psemoji alias unset`.
**And SO MUCH MORE!!!** (read the source, or let yourself be suprised)
### Uninstall 😔
```
curl https://raw.githubusercontent.com/smurthas/psemoji/master/$(python -c 'import urllib; print urllib.quote_plus("👎")') | bash
```