-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
38 lines (28 loc) · 952 Bytes
/
.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
export ZSH="/home/patrick/.oh-my-zsh"
ZSH_THEME="pygmalion"
autoload -U colors && colors
source $ZSH/oh-my-zsh.sh
# Vim is not OS enough
export EDITOR='emacsclient'
alias vi='$EDITOR --create-frame'
alias vim='$EDITOR --create-frame'
# Replace ls
alias ls='exa'
alias l='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias lt='ls --tree'
alias ll='ls -al -t modified'
# Copypasta
alias copycb='xclip -selection c'
alias pastecb='xclip -selection c -o'
#node alias
alias ns='npm start'
alias nsd='npm run start:dev'
alias nt='npm test'
alias ntu='npm test -- --updateSnapshot'
alias ntw='npm run test:watch'
alias mirrordisplay='xrandr --output DP-2 --auto --output DP-4 --auto --same-as DP-2'
nr() { npm run | grep -v -E '(Lifecycle included in)|(available via)|^$' | awk 'NR%2==0' | fzy | xargs -r npm run; }
export SASS_PATH=./node_modules
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/.local/bin/tools:$PATH"