My dotfiles and instructions on how to install Hyper and oh-my-zsh.
Note These are for MacOS. For Windows...good luck. You can do this with PowerShell, if you aren't using PowerShell...you're missing out. Instructions for creating a profile.ps1 are at the bottom.
I really like zsh and Mac is actually going to default to zsh in the future. So, hop on the bandwagon now!
- Try zsh --version. If it is > 4.3.9 then you're good, probably. But there are newer versions.
- If you have Homebrew installed run
brew install zsh zsh-completions - If you don't have homebrew run
port install zsh zsh-completions - Make it your default
chsh -s $(which zsh) - Close terminal program and reopen.
echo $SHELLif it says/bin/bashreboot your machine. Try again. Should say/bin/zsh
oh-my-zsh makes zsh even better and more customizable.
[GitHub Repo | https://github.com/robbyrussell/oh-my-zsh]
- Install via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - That's it
- Open up your terminal and
cd ~if not already there. - If you are using bash you can use
.bash_profileor.bashrcto add your aliases and functions. - If you installed zsh you use
.zshrcto add aliases and functions. - Some of my dot files are specific to the themes I am using. You may not want or need them. Don't take what I am using wholesale. I have a few aliases that are project/website specific that you can remove or change. For example if I type
GitHuband press enter it will take my to my GitHub Profile. You probably want to change that at the very least.
I use Hyper terminal for my terminal application. It runs on Electron so it is fast and very customizable.
brew update
brew cask install hyperchoco install hyper Note: You'll have to have choco installed. I've never installed it so review before using.
To create a profile that runs every time PowerShell is opened do the following:
cd $env:USERPROFILE\Documents
md WindowsPowerShell -ErrorAction SilentlyContinue
cd WindowsPowerShell
New-Item Microsoft.PowerShell_profile.ps1 -ItemType "file" -ErrorAction SilentlyContinue
powershell_ise.exe .\Microsoft.PowerShell_profile.ps1Note: I haven't tested this on newer versions of PS. So some things might need to be changed.
In profile.ps1:
function Your-Function {
# The logic
}
Set-Alias YourAlias Your-FunctionThen refresh your session with . $profile
I hope this still works~