Skip to content

Instantly share code, notes, and snippets.

@Jswizzy
Last active July 9, 2020 14:57
Show Gist options
  • Save Jswizzy/6e2c864e12aa1cab9d955d584c951a5c to your computer and use it in GitHub Desktop.
Save Jswizzy/6e2c864e12aa1cab9d955d584c951a5c to your computer and use it in GitHub Desktop.
# Path to your oh-my-zsh installation.
export ZSH="/home/justinsmith/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line if pasting URLs and other text is messed up.
DISABLE_MAGIC_FUNCTIONS=true
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
nvm
fzf
cargo
npm
yarn
tmux
vi-mode
)
source $ZSH/oh-my-zsh.sh
# Set fzf installation directory path
export FZF_BASE=/path/to/fzf/install/dir
# User configuration
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
alias ls=exa
alias ll="exa --header --long"
alias tree="exa --tree --level=2"
alias gs="exa --long --git"
alias fd=fdfind
alias cat=bat
alias git-tmux='tmux new -s $(basename $(pwd))'
alias v='nvim'
alias vi=nvim.appimage
alias vim=nvim.appimage
alias nvim=nvim.appimage
alias grep=rg
alias find=fdfind
alias f='v `fzf -i`'
alias oni=Onivim2-x86_64.AppImage
export EDITOR=nvim
if [[ -z "$TMUX" ]]; then
tmux new-session -A -s "$USER"
fi
eval "$(starship init zsh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment