Skip to content

Instantly share code, notes, and snippets.

@g3rhard
Last active July 17, 2024 13:03
Show Gist options
  • Save g3rhard/250bb5ea398ed6eda981a110703e998f to your computer and use it in GitHub Desktop.
Save g3rhard/250bb5ea398ed6eda981a110703e998f to your computer and use it in GitHub Desktop.
iSH minimal dotfiles
  • Install spaceship theme
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
sed -i 's/^ZSH_THEME=".*"/ZSH_THEME="spaceship"/' ~/.zshrc
alias vi="vim"
alias ls="ls -al"
" https://critter.blog/2017/05/24/a-minimal-vimrc-file/
set backspace=2 " backspace in insert mode works like normal editor
set shiftwidth=2 " indent by 2 spaces when auto-indenting
set softtabstop=2 " indent by 2 spaces when hitting tab
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
colorscheme desert " colorscheme desert
set nobackup " get rid of anoying ~file
export ZSH="$HOME/.oh-my-zsh"
# ZSH settings
ZSH_THEME="robbyrussell"
zstyle ':omz:update' mode disabled
# History
HISTSIZE=10000
SAVEHIST=10000
setopt SHARE_HISTORY
setopt APPEND_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_FIND_NO_DUPS
setopt HIST_REDUCE_BLANKS
# Plugins
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Environment variables
DISABLE_AUTO_TITLE="true"
# Set terminal title to hostname
case $TERM in
xterm*|rxvt*|gnome*|konsole*|iterm*)
precmd () { print -Pn "\e]0;%n@%m: %~\a" }
;;
esac
# Aliases
if [ -f ~/.aliases ]; then source ~/.aliases; fi
# Motd
if [ -f ~/.motd ]; then ~/.motd; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment