dotfiles/dotfiles/zshrc

40 lines
823 B
Bash

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt autocd
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/svante/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
export TERM="xterm"
# Shorthands
alias ls='ls --color=yes -h'
alias l='ls -l'
alias la='ls -a'
alias ll='ls -la'
alias v='vim'
alias c='clear'
alias e='exit'
# Defaults
alias vim='nvim'
alias nix-shell='nix-shell --run zsh'
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
source ~/.config/zsh/git.zsh
eval "$(direnv hook zsh)"
unsetopt PROMPT_SP
export PATH=$PATH:$HOME/.cargo/bin