-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.fish
54 lines (42 loc) · 1.38 KB
/
config.fish
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
############################################
# ALIASES
############################################
# navigation
alias .. "cd .."
alias ... "cd ../.."
alias .... "cd ../../.."
alias ..... "cd ../../../.."
# shortcuts
alias dt "cd ~/Desktop"
alias dl "cd ~/Downloads"
alias p "cd ~/Projects"
alias me "cd ~/Projects/benoitgrelard"
alias mz "cd ~/Projects/modulz"
alias wos "cd ~/Projects/workos"
# listings
alias l "ls -laF"
# git
alias gs "git status -s"
alias ga "git add"
alias gc "git commit"
# enable aliases to be sudo’ed
alias sudo "sudo "
# show/hide hidden files in Finder
alias show "defaults write com.apple.finder AppleShowAllFiles -bool true; and killall Finder"
alias hide "defaults write com.apple.finder AppleShowAllFiles -bool false; and killall Finder"
# show/hide desktop (useful when presenting)
alias showdesktop "defaults write com.apple.finder CreateDesktop -bool true; and killall Finder"
alias hidedesktop "defaults write com.apple.finder CreateDesktop -bool false; and killall Finder"
############################################
# FUNCTIONS
############################################
# create a new directory and cd into it
function mkd
mkdir -p $argv; and cd $argv
end
############################################
# OTHER
############################################
# volta (https://volta.sh/)
set -gx VOLTA_HOME "$HOME/.volta"
set -gx PATH "$VOLTA_HOME/bin" $PATH