Skip to content

Commit 4567e2c

Browse files
authored
Expand on tips
1 parent 734c3cc commit 4567e2c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

assets/tips.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Example: Find out your external IP.
4646
## Permanent aliases
4747
Use aliases between sessions or even distros.
4848

49+
Find out what shell you have:
50+
```[echo](/man/echo) $0```
51+
4952
Bash
5053
```[vim](/man/vim) ~/.bashrc```
5154

@@ -68,6 +71,10 @@ Separated by double ampersands, the next command is executed only if the previou
6871

6972
```command1 && command2```
7073

74+
Separated by double pipes, the next command is executed only if the previous one failed.
75+
76+
```command1 || command2```
77+
7178
## Command syntax
7279
To find out the syntax of a command, it is best to check the manual page:
7380

@@ -96,6 +103,11 @@ A very useful tool that gives you general examples of how to use commands is TLD
96103
| **meta + f** | Forward one word |
97104
| **meta + b** | Back one word |
98105

106+
These are for the default emacs mode.
107+
There is also a [vim](/man/vim) mode:
108+
109+
```bindkey -v```
110+
99111
## Redirection
100112
You can redirect standard input, output and error by adding these sequences after a command.
101113

0 commit comments

Comments
 (0)