-
Notifications
You must be signed in to change notification settings - Fork 0
/
macos-zshrc
32 lines (27 loc) · 1.35 KB
/
macos-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
# Global stuff
export PATH=$PATH:/opt/homebrew/bin # add homebrew apps to PATH
# Why do these not get added to PATH in macOS? Or at least a sym link. Seems wrong...
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'
alias firefox='/Applications/Firefox.app/Contents/MacOS/firefox'
alias code='/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron'
alias c='/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron'
# macOS doesn't allow opening more than one calculator by default. This command forces a new one
alias calc='open -na Calculator'
# My preferences
alias vash='vim ~/.zshrc && source ~/.zshrc'
alias vesp='espanso edit'
alias o='open'
alias g='ggrep -i --color=always'
alias grep='grep --color=always'
alias ls='/bin/ls --color=always'
alias ll='ls -lA --color=always'
setopt interactivecomments # allow using comments in interactive shells too, like bash has by default
setopt HIST_IGNORE_DUPS # ignore duplicate commands in history (when pressing up)
setopt HIST_IGNORE_SPACE # commands with leading whitespace as not saved into history
alias ips='ifconfig | grep inet'
alias uj='echo -n $@ > ~/dev/sergio_scripts/current_story.txt'
# For other aliases see bashrc
# Git prompt
source ~/other_dev/zsh-git-prompt/zshrc.sh
export PROMPT='%n:%~$(git_super_status) $ '