diff --git a/dwm.md b/dwm.md index cfb8ad5..94c7ee9 100644 --- a/dwm.md +++ b/dwm.md @@ -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 + diff --git a/git.md b/git.md index 509bf6a..b98133f 100644 --- a/git.md +++ b/git.md @@ -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 diff --git a/tmux.md b/tmux.md index 9038560..3e7257d 100644 --- a/tmux.md +++ b/tmux.md @@ -1,45 +1,78 @@ # Tmux from terminal -tmux -tmux attach -s -tmux new -t + + tmux + tmux attach -s + tmux new -t # 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 - Mod q + + Mod + Mod q + Resize panes - (Hold) Mod + (press) + + (Hold) Mod + (press) # Windows + Create a new window - Mod c + + Mod c + Rename a window - Mod , + + Mod , + Kill window - Mod & + + Mod & + ## Window Movement -Switch between windows - Mod - Mod n/p + +Switch between windows by number + + Mod + +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 diff --git a/vim.md b/vim.md index e69de29..275347e 100644 --- a/vim.md +++ b/vim.md @@ -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 +