Skip to content

Commit

Permalink
fix: updated node version to 14 + fixed markdown warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KalpitChoudhari committed Jul 12, 2023
1 parent f30c008 commit 1af624b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up node
uses: actions/setup-node@v2-beta
with:
node-version: '13'
node-version: '14'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
65 changes: 42 additions & 23 deletions tmux/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
# Tmux

Tmux, short for `T`erminal `MU`ltiple`X`er, is a powerful tool that allows users to manage multiple terminal sessions within a single window. With Tmux, you can switch between different sessions and run multiple terminal programs simultaneously, enhancing your productivity and workflow.
Tmux, short for `T`erminal `MU`ltiple`X`er, is a powerful tool that allows users
to manage multiple terminal sessions within a single window.
With Tmux, you can switch between different sessions and run multiple terminal
programs simultaneously, enhancing your productivity and workflow.

<br />
&nbsp;

## Prerequisite

Before installing Tmux, ensure that you have Homebrew installed on your system. If you don't have Homebrew, you can refer to the [Homebrew installation guide](../Homebrew/README.md) for instructions.
Before installing Tmux, ensure that you have Homebrew installed on your system.
If you don't have Homebrew, you can refer to the
[Homebrew installation guide](../Homebrew/README.md)
for instructions.

<br />
&nbsp;

## Installation

```sh
brew install tmux
```

Once the installation is complete, you can verify if Tmux is properly installed by typing the following command in your terminal:
Once the installation is complete, you can verify if Tmux is properly installed
by typing the following command in your terminal:

```sh
tmux
```

Above command will create a session in current window.

<br />
&nbsp;

## Usage

Expand All @@ -36,53 +43,65 @@ To start a new Tmux session with a specific session name, use the following comm
tmux new-session -s SESSION_NAME
```

Replace `SESSION_NAME` with the desired name for your session. This command will create a new Tmux session with the given name.
Replace `SESSION_NAME` with the desired name for your session. This command will
create a new Tmux session with the given name.

<br />
&nbsp;

### The Prefix Key

Once you've started a Tmux session, any keys entered are forwarded to the program running in the active pane of the current window. To control Tmux, a special prefix key is used, which is typically `Ctrl + B` by default.

<br />
Once you've started a Tmux session, any keys entered are forwarded to the program
running in the active pane of the current window. To control Tmux, a special
prefix key is used, which is typically `Ctrl + B` by default.

### Create new window in current session

To create a new terminal window within the current Tmux session, press the following keys in the current window:
To create a new terminal window within the current Tmux session, press the
following keys in the current window:

> `Ctrl + B`, then release the keys and press `C`
The prefix key sequence `Ctrl + B` tells Tmux to wait for another key press. After releasing the prefix key, pressing `C` will create a new window in the current session.
The prefix key sequence `Ctrl + B` tells Tmux to wait for another key press.
After releasing the prefix key, pressing `C` will create a new window in the
current session.

<br />
&nbsp;

### Switching Between Windows Within a Tmux Session

If you've created multiple windows in the current Tmux session, you can switch between them by using the following command:
If you've created multiple windows in the current Tmux session, you can switch
between them by using the following command:

> `Ctrl + B`, then release the keys and press the corresponding window number.
For example, to switch to the first window in the current session, press `Ctrl + B`, release the keys, and then press `1`. Please note that window numbers start from `0`.
For example, to switch to the first window in the current session, press
`Ctrl + B`, release the keys, and then press `1`. Please note that window numbers
start from `0`.

<br />
&nbsp;

### Scrolling window in tmux

In Tmux, scrolling within a window allows you to access previously executed commands and view the output that extends beyond the visible portion of the terminal.
In Tmux, scrolling within a window allows you to access previously executed
commands and view the output that extends beyond the visible portion of the terminal.

To scroll within the current window in Tmux, use the following command:
> `Ctrl + B` then release the keys and press `[`
This key sequence instructs Tmux to enter scroll mode.Once in scroll mode, you can use the arrow keys or the Page Up and Page Down keys to navigate through the terminal's scrollback buffer and view the previous commands and output.
This key sequence instructs Tmux to enter scroll mode.Once in scroll mode, you
can use the arrow keys or the Page Up and Page Down keys to navigate through the
terminal's scrollback buffer and view the previous commands and output.

To exit scroll mode and return to normal mode, press the `q` key.

<br />
&nbsp;

### Exiting From Current Tmux Session

To exit from a Tmux session, simply type `exit` within the session window, and you will be automatically disconnected from the session.
To exit from a Tmux session, simply type `exit` within the session window, and
you will be automatically disconnected from the session.

<br />
&nbsp;

By utilizing Tmux's features, you can effectively manage and organize multiple terminal sessions, improving your command-line experience and overall efficiency.
By utilizing Tmux's features, you can effectively manage and organize multiple
terminal sessions, improving your command-line experience and overall efficiency.

0 comments on commit 1af624b

Please sign in to comment.