-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
54 lines (44 loc) · 1.61 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="false"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd/mm/yyyy"
# Compilation flags
export ARCHFLAGS="-arch x86_64"
export RUBY_CONFIGURE_OPTS=--enable-yjit
# Which plugins would you like to load?
plugins=(asdf tmux gh gem ruby rails starship eza bundler)
# Set some Eza styles
zstyle ':omz:plugins:eza' 'icons' yes
zstyle ':omz:plugins:eza' 'dirs-first' yes
zstyle ':omz:plugins:eza' 'git-status' yes
zstyle ':omz:plugins:eza' 'header' yes
# User configuration
export PATH="/usr/local/sbin:$PATH"
export EDITOR="zed"
source $ZSH/oh-my-zsh.sh
# For EZA ls command
export FPATH="/usr/local/share/zsh/site-functions:$FPATH"
alias ls="eza --icons"
alias ll="ls --git -lh"
alias la="ls --git -la"
alias lld="ll -D"
alias lad="la -D"
# Configure command aliases
alias v="nvim"
alias lg="lazygit"
alias z="zed"
# Here is a trick to keep config files in Git.
# Initialise an empty git repository: git init --bare $HOME/.myconf
# Now set it to ignore untracked files: git config status.showUntrackedFiles no
# Configure a Github repo as the origin: git remote add origin [email protected]:askegg/dotfiles.git
# With the "config" alias below we can now add files to the git repository:
# config add .zshrc
# config commit -m "Added .zshrc"
# config push
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME'
# I'm using starship to customise the prompt
# See https://starship.rs
export STARSHIP_LOG="error" # I don't want to see warnings, just errors.
eval "$(starship init zsh)"