README.md 1.76 KB
Newer Older
Antoine Huguet's avatar
Antoine Huguet committed
1
2
# Shell Pics

Antoine Huguet's avatar
Antoine Huguet committed
3
4
This is a ZSH shell config aimed to be used on Pics server.

Antoine Huguet's avatar
Antoine Huguet committed
5
6
7
8
9
![Auto completion preview](https://storage.galerie.pics/geek/autocompletion.png "Auto completion preview")

![History preview](https://storage.galerie.pics/geek/history.png "History preview")

![Double tab preview](https://storage.galerie.pics/geek/double_tab.png "Double tab preview")
Antoine Huguet's avatar
Antoine Huguet committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23

## Install ZSH

```shell
sudo apt install zsh
```

## One step installation

#### Clone repository

```shell
git clone https://gitlab.viarezo.fr/2019hugueta2/shell-pics ~/shell-pics
```
Antoine Huguet's avatar
Antoine Huguet committed
24
#### Make file executable
Antoine Huguet's avatar
Antoine Huguet committed
25
26
27
28

```shell
sudo chmod +x ~/shell-pics/install.sh
```
Antoine Huguet's avatar
Antoine Huguet committed
29
30
31
32
33

#### Start installation

Do **not** install as **sudo**.

Antoine Huguet's avatar
Antoine Huguet committed
34
35
36
37
```shell
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```

Antoine Huguet's avatar
Antoine Huguet committed
38
```shell
Antoine Huguet's avatar
Antoine Huguet committed
39
~/shell-pics/install.sh
Antoine Huguet's avatar
Antoine Huguet committed
40
41
42
43
44
45
46
47
```

#### Follow instructions


#### Remove installation folder

```shell
Antoine Huguet's avatar
Antoine Huguet committed
48
rm -rf ~/shell-pics
Antoine Huguet's avatar
Antoine Huguet committed
49
50
```

Antoine Huguet's avatar
Antoine Huguet committed
51
52
53
54
55
#### Restart shell

```shell
source ~/.zshrc
```
Antoine Huguet's avatar
Antoine Huguet committed
56
57
58
59
60
61
62
63
64
65

## Set up your terminal


You'll need to install a ***Powerline*** compatible font (**on your personal computer**).

### On Linux & MacOs

```shell
git clone https://github.com/powerline/fonts.git
Antoine Huguet's avatar
Antoine Huguet committed
66
./fonts/install.sh
Antoine Huguet's avatar
Antoine Huguet committed
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
```

### On Windows

On any shell run :
```shell
cd $HOME
git clone https://github.com/powerline/fonts.git
```

Then by using **Powershell ad Administrator** run :
```shell
cd $HOME\fonts
Set-ExecutionPolicy Bypass
```

Confirm (y) and then :
```shell
.\install.ps1
```

When the installation is complete :
```shell
Set-ExecutionPolicy Default
```

### Select your font

And then you have to select a ***Powerline*** compatible font ( ***'for Powerline'*** ). Open **Preferences > Profiles > Text > Change Font** in your terminal.

![Change Font](https://storage.galerie.pics/geek/powerline-font.png "Change Font")