![]() ![]() You need to check it out if you haven’t already. I use Azure functions a lot, both PowerShell and C# and being able to develop these in a container without having to have the Az Functions Core tools or npm or any of the extensions installed locally is a dream. The above post covers pretty much everything you need to get started with that but using docker as a development enviroment has been a game changer. I wrote about Developing Pwsh Azure Functions inside a Container some time ago and it was really my my first foray into using docker as a daily tool but this is now how I work every day for most of the repositories and code that I write. I have updated the gist of my profile here. DefaultPromptSuffix = $ ( '`n❯❯ ' * ( $nestedPromptLevel + 1 )) # This is to prevent an issue where iterm2 throws an error every time the prompt is run if ( $ env : LC_TERMINAL -eq "iTerm2" ) DefaultPromptAbbreviateHomeDirectory = $true $GitPromptSettings. Import-Module posh-git Import-Module oh-my-posh $gitpromptsettings. The other two aliases are pretty self-explanatory. There are a few things that I have had to add to make my life easier when switching between bash/zsh and PowerShell so that I have consistent commands available to me.Ĭls is too engrained and quicker to type so that has to go in there. I also tend to stick to bash for Azure CLI too for the tab completion and speed it offers. I am now finding that I am using zsh as a primary shell over PowerShell for day to day interaction especially when interacting with git. I have not really played around with this beyond my initial setup which I am quite happy with. I am using PowerLevel9k for my theme which offers some nice customisations. This has changed slightly as I am now on MacOS in the fact that I am now running two different profiles for bash/zsh and one for PowerShell. It comes bundled with thousands of helpful functions, helpers, plugins & themes. Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. There are probably more but these are the ones I can remember adding. Move End of Selection Forward -> Move by Word ![]() ITerm2 > Preferences > Profiles > Keys Key Combination The rest of my keyboard shortcuts are listed below (that I can remember adding). Pressing ESC to clear the whole line in the terminal which is familiar behaviour for me and one of the muscle memory options that I want to keep. You can install homebrew from the command line too!Įcho "set completion-ignore-case On" > ~/.inputrc Switching from Windows where I used Chocolatey for my software installation needs, I had heard about homebrew and was keen to make a start with using a decent package manager from the start. Make the dock appear faster when using auto hide.Unfortunately I do have to keep an Azure VM handy for the very odd ocassion that I may need something Windows specific. The multiple desktops and the trackpad/gestures is an awesome experience. ![]() I thought the switch to MacOS was going to be more difficult than it initially was but once I sorted my muscle memory out (mainly for copy and paste) it was a pretty seamless transition. Some stuff won’t have changed too much because, well….there was no need but my way of working has shifted slightly and I spend more time with a split terminal between bash and PowerShell. I have since moved from a Windows laptop to MacOS so I wanted to make a note of customisations and changes so I had a place to track all of them but other people may also find some of them handy. Moving to the beginning of the line: 0x01.ĮDIT: I've added code for beginning and end lines, and i'm currently working on turning this into a nice, complete list.I previously wrote a post on this which was very popular as I tried to document all of my productivity hacks and shortcuts that I use on a daily basis to assist in writing PowerShell.In the Action dropdown, select Send Hex Code.Add a global shortcut key, and just type in your shortcut.Open the preferences (⌘+,) and go to the Keys tab.The following is what I've found to work on my machine. By default, iTerm2 isn't configured this way, and there are a lot of misleading guides online. ⌘+ ← and ⌘+ → are for going to the beginning and end of lines. In OSX, ⌥+⌫ and ⌘+⌫ are the shortcuts for deleting a word and deleting a line respectively. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |