Formatted for markdown
parent
37498322c6
commit
8df940ac0a
@ -1,53 +1,92 @@
|
|||||||
# Mod Key
|
# Mod Key
|
||||||
|
|
||||||
alt
|
alt
|
||||||
|
|
||||||
# Show/Hide bar
|
# Show/Hide bar
|
||||||
|
|
||||||
alt + b
|
alt + b
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
|
|
||||||
Start a terminal Window
|
Start a terminal Window
|
||||||
|
|
||||||
mod + shift + enter
|
mod + shift + enter
|
||||||
|
|
||||||
Start a window
|
Start a window
|
||||||
|
|
||||||
mod + p
|
mod + p
|
||||||
|
|
||||||
Move between windows
|
Move between windows
|
||||||
|
|
||||||
alt + j/k
|
alt + j/k
|
||||||
|
|
||||||
Kill window
|
Kill window
|
||||||
|
|
||||||
alt + shift + c
|
alt + shift + c
|
||||||
|
|
||||||
# Master Window
|
# Master Window
|
||||||
|
|
||||||
Increase master size
|
Increase master size
|
||||||
|
|
||||||
alt + l
|
alt + l
|
||||||
|
|
||||||
Decrease master size
|
Decrease master size
|
||||||
|
|
||||||
alt + h
|
alt + h
|
||||||
|
|
||||||
Zoom window/Move to master
|
Zoom window/Move to master
|
||||||
|
|
||||||
alt + Enter
|
alt + Enter
|
||||||
|
|
||||||
Increment master (the amount of windows in the master area)
|
Increment master (the amount of windows in the master area)
|
||||||
|
|
||||||
alt + i
|
alt + i
|
||||||
|
|
||||||
Decrement master
|
Decrement master
|
||||||
|
|
||||||
alt + d
|
alt + d
|
||||||
|
|
||||||
# Layouts
|
# Layouts
|
||||||
|
|
||||||
Tiled windows (default)
|
Tiled windows (default)
|
||||||
|
|
||||||
alt + t
|
alt + t
|
||||||
|
|
||||||
Focus window/Zoom/Only window visible
|
Focus window/Zoom/Only window visible
|
||||||
|
|
||||||
alt + m
|
alt + m
|
||||||
|
|
||||||
Floating windows
|
Floating windows
|
||||||
|
|
||||||
alt + f
|
alt + f
|
||||||
|
|
||||||
Switch between previous layout
|
Switch between previous layout
|
||||||
|
|
||||||
alt + space
|
alt + space
|
||||||
|
|
||||||
# Tags/desktops
|
# Tags/desktops
|
||||||
|
|
||||||
Switch between tags
|
Switch between tags
|
||||||
|
|
||||||
alt + <1..9>
|
alt + <1..9>
|
||||||
|
|
||||||
Move a window to another tag
|
Move a window to another tag
|
||||||
|
|
||||||
alt + shift + <1..9>
|
alt + shift + <1..9>
|
||||||
|
|
||||||
# Multiple Monitors
|
# Multiple Monitors
|
||||||
|
|
||||||
Switch between monitors
|
Switch between monitors
|
||||||
|
|
||||||
alt + , .
|
alt + , .
|
||||||
|
|
||||||
Move a window to another monitor
|
Move a window to another monitor
|
||||||
|
|
||||||
alt + shift + , .
|
alt + shift + , .
|
||||||
|
|
||||||
# Shutdown
|
# Shutdown
|
||||||
|
|
||||||
Clean shutdown
|
Clean shutdown
|
||||||
|
|
||||||
alt + shift + q
|
alt + shift + q
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,40 @@
|
|||||||
# Create a GitHub repository and setup with terminal
|
# Create a GitHub repository and setup with terminal
|
||||||
|
|
||||||
Initialise the local repo
|
Initialise the local repo
|
||||||
`git init`
|
|
||||||
|
git init
|
||||||
|
|
||||||
Add a file to the repo, in this case the file was "git"
|
Add a file to the repo, in this case the file was "git"
|
||||||
`git add git`
|
|
||||||
|
git add git
|
||||||
|
|
||||||
Commit to the repo, with a message
|
Commit to the repo, with a message
|
||||||
`git commit -m "Commiting the empty repository to GitHub"`
|
|
||||||
|
git commit -m "Commiting the empty repository to GitHub"
|
||||||
|
|
||||||
Add the local repo to the GitHub repo
|
Add the local repo to the GitHub repo
|
||||||
`git remote add origin https://github.com/SirAney/references.git`
|
|
||||||
|
git remote add origin https://github.com/SirAney/references.git
|
||||||
|
|
||||||
Push the commits from the local repo to the GutHub repo
|
Push the commits from the local repo to the GutHub repo
|
||||||
`git push -u origin master`
|
|
||||||
|
git push -u origin master
|
||||||
|
|
||||||
# Pull a repo from GitHub to local machine
|
# Pull a repo from GitHub to local machine
|
||||||
|
|
||||||
git init
|
git init
|
||||||
git pull http://github.com/USER/REPO
|
git pull http://github.com/USER/REPO
|
||||||
|
|
||||||
or
|
or
|
||||||
`git clone https://github.com/USER/REPO'
|
|
||||||
|
git clone https://github.com/USER/REPO
|
||||||
|
|
||||||
# Commit new changes to the repository
|
# Commit new changes to the repository
|
||||||
|
|
||||||
|
Add the new file, or the changed file/directory
|
||||||
|
|
||||||
git add file
|
git add file
|
||||||
|
|
||||||
|
Commit with a message; What and why was it changed
|
||||||
|
|
||||||
git commit -m
|
git commit -m
|
||||||
|
|||||||
@ -1,45 +1,78 @@
|
|||||||
# Tmux from terminal
|
# Tmux from terminal
|
||||||
|
|
||||||
tmux
|
tmux
|
||||||
tmux attach -s <SessionName>
|
tmux attach -s <SessionName>
|
||||||
tmux new -t <SessionName>
|
tmux new -t <SessionName>
|
||||||
|
|
||||||
# Prefix/Mod Key
|
# Prefix/Mod Key
|
||||||
|
|
||||||
Ctrl + b
|
Ctrl + b
|
||||||
|
|
||||||
# Detach Session
|
# Detach Session
|
||||||
|
|
||||||
Keep the session running while not focussed
|
Keep the session running while not focussed
|
||||||
`Mod d`
|
|
||||||
|
Mod d
|
||||||
|
|
||||||
# Tmux Panes
|
# Tmux Panes
|
||||||
|
|
||||||
Split Right
|
Split Right
|
||||||
|
|
||||||
Mod %
|
Mod %
|
||||||
|
|
||||||
Split Down
|
Split Down
|
||||||
|
|
||||||
Mod "
|
Mod "
|
||||||
|
|
||||||
Kill pane
|
Kill pane
|
||||||
|
|
||||||
Ctrl + d
|
Ctrl + d
|
||||||
|
|
||||||
## Pane Movement
|
## Pane Movement
|
||||||
|
|
||||||
Move between panes
|
Move between panes
|
||||||
|
|
||||||
Mod <arrow keys>
|
Mod <arrow keys>
|
||||||
Mod q <number>
|
Mod q <number>
|
||||||
|
|
||||||
Resize panes
|
Resize panes
|
||||||
|
|
||||||
(Hold) Mod + (press) <Arrow Key>
|
(Hold) Mod + (press) <Arrow Key>
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
|
|
||||||
Create a new window
|
Create a new window
|
||||||
|
|
||||||
Mod c
|
Mod c
|
||||||
|
|
||||||
Rename a window
|
Rename a window
|
||||||
|
|
||||||
Mod ,
|
Mod ,
|
||||||
|
|
||||||
Kill window
|
Kill window
|
||||||
|
|
||||||
Mod &
|
Mod &
|
||||||
|
|
||||||
## Window Movement
|
## Window Movement
|
||||||
Switch between windows
|
|
||||||
|
Switch between windows by number
|
||||||
|
|
||||||
Mod <window number>
|
Mod <window number>
|
||||||
|
|
||||||
|
Switch between next/previous windows
|
||||||
|
|
||||||
Mod n/p
|
Mod n/p
|
||||||
|
|
||||||
# Sessions
|
# Sessions
|
||||||
|
|
||||||
Create a new session
|
Create a new session
|
||||||
|
|
||||||
Mod :new
|
Mod :new
|
||||||
|
|
||||||
Rename a session
|
Rename a session
|
||||||
|
|
||||||
Mod $
|
Mod $
|
||||||
|
|
||||||
Show existing sessions
|
Show existing sessions
|
||||||
|
|
||||||
Mod s
|
Mod s
|
||||||
|
|||||||
Loading…
Reference in New Issue