Skip to content

TheSavageDev/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

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.

Install zsh

I really like zsh and Mac is actually going to default to zsh in the future. So, hop on the bandwagon now!

  1. Try zsh --version. If it is > 4.3.9 then you're good, probably. But there are newer versions.
  2. If you have Homebrew installed run brew install zsh zsh-completions
  3. If you don't have homebrew run port install zsh zsh-completions
  4. Make it your default chsh -s $(which zsh)
  5. Close terminal program and reopen.
  6. echo $SHELL if it says /bin/bash reboot your machine. Try again. Should say /bin/zsh

Install oh-my-zsh

oh-my-zsh makes zsh even better and more customizable.

[GitHub Repo | https://github.com/robbyrussell/oh-my-zsh]

  1. Install via curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  2. That's it

Change your dot files.

  1. Open up your terminal and cd ~ if not already there.
  2. If you are using bash you can use .bash_profile or .bashrc to add your aliases and functions.
  3. If you installed zsh you use .zshrc to add aliases and functions.
  4. 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 GitHub and press enter it will take my to my GitHub Profile. You probably want to change that at the very least.

Hyper Terminal

I use Hyper terminal for my terminal application. It runs on Electron so it is fast and very customizable.

Mac

brew update
brew cask install hyper

Windows

choco install hyper Note: You'll have to have choco installed. I've never installed it so review before using.

profile.ps1

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.ps1

Note: 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-Function

Then refresh your session with . $profile

I hope this still works~

About

My dotfiles and instructions on how to install Hyper and oh-my-zsh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages