diff --git a/_subsections/lesson-05.org b/_subsections/lesson-05.org index 538bf70..eab2362 100755 --- a/_subsections/lesson-05.org +++ b/_subsections/lesson-05.org @@ -10,7 +10,7 @@ - [[https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J][Playlist: Missing Semester]] - [[https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbVVJc2RzZ25nMmlrVW5zVGRsTS1fX2ladmRPQXxBQ3Jtc0ttWjQ5Ujcyd19TekNncTZGNEp1eDc3RWhzTzhvMW9oSTFoUl9JbGt1Mi0yU3FLc00wVUx1UXNJdFQxTjBjMWphdUZxNnU1WUYzTmFqd3RRemNLUDBJMlZkV3B0SnB4RVhpaUhvWWtnc1RISW1WVzdYWQ&q=https%3A%2F%2Fmissing.csail.mit.edu%2F2020%2Fcommand-line%2F&v=e8BO_dYxk5c][class notes]] -- Curr: https://youtu.be/e8BO_dYxk5c?si=lIzq1GgkvRoRriWj&t=1531 +- Curr: https://youtu.be/e8BO_dYxk5c?si=7tmshQsaihcvs-aP&t=2018 *** timestamps :PROPERTIES: @@ -25,8 +25,8 @@ + [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=672s][11:12 - The Kill Command]] + [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=881s][14:41 - Terminal Multiplexer]] + [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1112s][18:32 - The Key Bindings]] -+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1536s][25:00 - Dot Files]] *current* -+ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1799s][29:59 - Context Based Configuration File]] ++ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1536s][25:00 - Dot Files]] ++ [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=1799s][29:59 - Context Based Configuration File]] *current* + [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2004s][33:24 - Terminal Emulator]] + [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2196s][36:36 - Aliases]] + [[https://www.youtube.com/watch?v=e8BO_dYxk5c&t=2286s][38:06 - Common Folder Structure]] @@ -124,3 +124,45 @@ will show the suspended and running processes in background - sessions - windows - panes + + +** dot files +*** alias +- remap a source series of characters to a longer series +- alias takes a single argument, ie, do not use spaces +- to show what an alias refers to pass the alias to the alias command + - e.g. +#+begin_src bash +~/somedirectory >>> alias myaliasedcommand +myaliasedcommand='ls -lah' +#+end_src + +**** examples +- make an alias "ll" for a list command with flags +#+begin_src bash +alias ll="ls -lah" +#+end_src + +- make an alias for git status +#+begin_src bash +alias gs="git status" +#+end_src + +- alias to prompt for an override +#+begin_src bash +alias mv="mv -i" +#+end_src + +*** text based configuration 'dot files' +- called 'dot files' because they start with a dot + - .bashrc + - must be in the home directory + - PS1 + - prompt variable for your prompt + - you can set it in the .bashrc file + - ~PS1=" >> "~ + + - .vimrc + - vim configuration file + +** terminal emulator