Formatted for markdown

master
Nathan Steel 6 years ago
parent 37498322c6
commit 8df940ac0a

@ -1,53 +1,92 @@
# Mod Key
alt
alt
# Show/Hide bar
alt + b
alt + b
# Windows
Start a terminal Window
mod + shift + enter
mod + shift + enter
Start a window
mod + p
mod + p
Move between windows
alt + j/k
alt + j/k
Kill window
alt + shift + c
alt + shift + c
# Master Window
Increase master size
alt + l
alt + l
Decrease master size
alt + h
alt + h
Zoom window/Move to master
alt + Enter
alt + Enter
Increment master (the amount of windows in the master area)
alt + i
alt + i
Decrement master
alt + d
alt + d
# Layouts
Tiled windows (default)
alt + t
alt + t
Focus window/Zoom/Only window visible
alt + m
alt + m
Floating windows
alt + f
alt + f
Switch between previous layout
alt + space
alt + space
# Tags/desktops
Switch between tags
alt + <1..9>
alt + <1..9>
Move a window to another tag
alt + shift + <1..9>
alt + shift + <1..9>
# Multiple Monitors
Switch between monitors
alt + , .
alt + , .
Move a window to another monitor
alt + shift + , .
alt + shift + , .
# Shutdown
Clean shutdown
alt + shift + q
alt + shift + q

@ -1,21 +1,40 @@
# Create a GitHub repository and setup with terminal
Initialise the local repo
`git init`
git init
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
`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
`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
`git push -u origin master`
git push -u origin master
# Pull a repo from GitHub to local machine
git init
git pull http://github.com/USER/REPO
git init
git pull http://github.com/USER/REPO
or
`git clone https://github.com/USER/REPO'
git clone https://github.com/USER/REPO
# Commit new changes to the repository
git add file
git commit -m
Add the new file, or the changed file/directory
git add file
Commit with a message; What and why was it changed
git commit -m

@ -1,45 +1,78 @@
# Tmux from terminal
tmux
tmux attach -s <SessionName>
tmux new -t <SessionName>
tmux
tmux attach -s <SessionName>
tmux new -t <SessionName>
# Prefix/Mod Key
Ctrl + b
Ctrl + b
# Detach Session
Keep the session running while not focussed
`Mod d`
Mod d
# Tmux Panes
Split Right
Mod %
Split Down
Mod "
Mod "
Kill pane
Ctrl + d
Ctrl + d
## Pane Movement
Move between panes
Mod <arrow keys>
Mod q <number>
Mod <arrow keys>
Mod q <number>
Resize panes
(Hold) Mod + (press) <Arrow Key>
(Hold) Mod + (press) <Arrow Key>
# Windows
Create a new window
Mod c
Mod c
Rename a window
Mod ,
Mod ,
Kill window
Mod &
Mod &
## Window Movement
Switch between windows
Mod <window number>
Mod n/p
Switch between windows by number
Mod <window number>
Switch between next/previous windows
Mod n/p
# Sessions
Create a new session
Mod :new
Mod :new
Rename a session
Mod $
Mod $
Show existing sessions
Mod s
Mod s

@ -0,0 +1,29 @@
# Basics
# Movement
# Search
# Replace/Change
c Change
cw
:%s/x/y Replace x for y on each line
# Buffers Splits Multitasking
:r
:e filename
:bn
:bp
:bd
:split
:vs
Ctrl + ww
Ctrl + wr Switch the splits around
# Visual Selection
Loading…
Cancel
Save