-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.sh
More file actions
40 lines (34 loc) · 824 Bytes
/
include.sh
File metadata and controls
40 lines (34 loc) · 824 Bytes
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
# ZSH. Install starship
export STARSHIP_CONFIG=~/.scripts/starship.toml
eval "$(starship init zsh)" # Install with brew
# remember to install a font with icons
# (e.g., Fira code https://github.com/tonsky/FiraCode)
# and set it in terminal app
# History
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=1000000000
export SAVEHIST=1000000000
setopt EXTENDED_HISTORY
eval "$(fzf --zsh)" # fuzzy search. Install fzf with brew. Use Ctrl+R
# Stuff that I use
alias em='emacs'
alias emnw='emacs --no-window-system'
alias ..='cd ..'
alias 2..='cd ../..'
alias 3..='cd ../../..'
alias 4..='cd ../../../..'
alias 5..='cd ../../../../..'
setopt autocd
mkcd () {
\mkdir -p "$1"
cd "$1"
}
tempe () {
cd "$(mktemp -d)"
chmod -R 0700 .
if [[ $# -eq 1 ]]; then
\mkdir -p "$1"
cd "$1"
chmod -R 0700 .
fi
}