Skip to content

Commit

Permalink
zsh: better beep, add some env and shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
caspiano committed May 27, 2021
1 parent 698dd83 commit 632b5c8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ alias vimrc="vim ~/.vimrc"
# Aliases
#################################

alias code='codium'

alias py='python3'
alias pip='pip3'
alias ra='ranger'
Expand Down Expand Up @@ -170,6 +172,7 @@ function mac_aliases() {
alias la='ls -lAh'
alias ls='ls -Gh'
alias lsa='ls -lah'
alias xdg-open='open'
}

function linux_aliases() {
Expand Down Expand Up @@ -217,6 +220,9 @@ then
export CPPFlAGS="-L/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/opt/openssl/lib"

# LLVM
export LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config

# Stop brew updating every fucking time
export HOMEBREW_NO_AUTO_UPDATE=1

Expand All @@ -226,13 +232,8 @@ then
path+=mac_paths

# Mac beeps
function negativebeep() {
(say "failed")
}

function positivebeep() {
(say --voice Ting-Ting "完了")
}
function negativebeep() { (say --voice Mei-Jia "不好的") }
function positivebeep() { (say --voice Mei-Jia "完了") }
else
# Create linux only aliases
linux_aliases
Expand Down

0 comments on commit 632b5c8

Please sign in to comment.