├── .zshrc
├── LICENSE
├── README.md
├── TerminalScreenshot.png
└── dotfilesTweet.png
/.zshrc:
--------------------------------------------------------------------------------
1 | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2 | # Initialization code that may require console input (password prompts, [y/n]
3 | # confirmations, etc.) must go above this block; everything else may go below.
4 | if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
5 | source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
6 | fi
7 |
8 | # Path to your oh-my-zsh installation.
9 | export ZSH=$HOME/.oh-my-zsh
10 |
11 | # Set name of the theme to load.
12 | # Look in ~/.oh-my-zsh/themes/
13 | # Optionally, if you set this to "random", it'll load a random theme each
14 | # time that oh-my-zsh is loaded.
15 | ZSH_THEME="powerlevel10k/powerlevel10k"
16 |
17 | alias zshrc="code ~/.zshrc"
18 | alias bundle!="bundle install && rake install"
19 | alias be="bundle exec"
20 | alias bi="bundle install"
21 | alias bu="bundle update"
22 | alias ri="rake install"
23 | alias gc="git checkout"
24 | alias gco="git checkout"
25 | alias gcm="git checkout master"
26 | alias gpull="git pull"
27 | alias gpush="git push"
28 | alias gm="git merge"
29 | alias gbranch="git checkout -b"
30 | alias gclone="git clone"
31 | alias g="gittower ."
32 | alias s="code ."
33 | alias o="open ."
34 | alias server="python -m SimpleHTTPServer"
35 | alias kk="source .keys"
36 | alias k="up && source .env && cd -"
37 | alias r="up && be rubocop -a"
38 |
39 | # Download YouTube videos
40 | alias youtube="youtube-dl"
41 | alias yt="youtube-dl"
42 |
43 | # Compress pngs
44 | alias compress_png="pngquant"
45 | alias png="pngquant"
46 |
47 | # No one needs HEIC, pls macOS offer one click converstion at some point kthx
48 | alias heic="magick mogrify -monitor -format jpg *.heic"
49 | alias HEIC="magick mogrify -monitor -format jpg *.HEIC"
50 |
51 | function o() {
52 | z $1 && open .
53 | }
54 |
55 | function e() {
56 | _z $1
57 | git pull
58 | gittower .
59 | code .
60 | }
61 |
62 | export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
63 | export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
64 | export PATH="/usr/local/heroku/bin:$PATH"
65 | export PATH="$HOME/.fastlane/bin:$PATH"
66 | export PATH=$HOME/bin:$PATH
67 | export PATH=$HOME/homebrew/bin:$PATH
68 | export LD_LIBRARY_PATH=$HOME/homebrew/lib:$LD_LIBRARY_PATH
69 |
70 | # we don't want to influence the stats
71 | export FASTLANE_SKIP_UPDATE_CHECK="1"
72 | export FASTLANE_OPT_OUT_USAGE="1"
73 | export FASTLANE_OPT_OUT_CRASH_REPORTING="1"
74 |
75 | export LANG=en_US.UTF-8
76 |
77 | . ~/.oh-my-zsh/felix/z.sh
78 |
79 | # Xcode via @orta
80 | openx(){
81 | if test -n "$(find . -maxdepth 1 -name '*.xcworkspace' -print -quit)"
82 | then
83 | echo "Opening workspace"
84 | open *.xcworkspace
85 | return
86 | else
87 | if test -n "$(find . -maxdepth 1 -name '*.xcodeproj' -print -quit)"
88 | then
89 | echo "Opening project"
90 | open *.xcodeproj
91 | return
92 | else
93 | echo "Nothing found"
94 | fi
95 | fi
96 | }
97 |
98 | source $ZSH/oh-my-zsh.sh
99 |
100 | # Preferred editor for local and remote sessions
101 | if [[ -n $SSH_CONNECTION ]]; then
102 | export EDITOR='vim'
103 | else
104 | export EDITOR='code'
105 | fi
106 |
107 | # Go to the root of the current git project, or just go one folder up
108 | function up() {
109 | export git_dir="$(git rev-parse --show-toplevel 2> /dev/null)"
110 | if [ -z $git_dir ]
111 | then
112 | cd ..
113 | else
114 | cd $git_dir
115 | fi
116 | }
117 |
118 | # Powerline
119 | function powerline_precmd() {
120 | PS1="$(~/.oh-my-zsh/felix/powerline-shell/powerline-shell.py $? --shell zsh 2> /dev/null)"
121 | }
122 |
123 | function install_powerline_precmd() {
124 | for s in "${precmd_functions[@]}"; do
125 | if [ "$s" = "powerline_precmd" ]; then
126 | return
127 | fi
128 | done
129 | precmd_functions+=(powerline_precmd)
130 | }
131 |
132 | install_powerline_precmd
133 |
134 | # Init rbenv
135 | eval "$(rbenv init -)"
136 |
137 | [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
138 |
139 | pokemonsay Hello Felix
140 |
141 | # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
142 | [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
143 | (( ! ${+functions[p10k]} )) || p10k finalize
144 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Felix Krause
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # What dotfiles is Felix using
2 |
3 | This repo contains one (maybe more in the future) dotfiles.
4 |
5 |
6 |
7 | After I sent of this tweet I decided to move my dotfiles to GitHub. I'm still only using a very basic set of things, however I'm really happy about how much time [my aliases](https://github.com/KrauseFx/dotfiles/blob/master/.zshrc#L10) has saved me so far.
8 |
9 | ---
10 |
11 | For more information about the terminal I'm using, check out [KrauseFx/what-terminal-is-felix-using](https://github.com/KrauseFx/what-terminal-is-felix-using) 🚀
12 |
13 |
14 |
15 | ----
16 |
17 | To clone the repo, do the following
18 |
19 | 1. `cd`
20 | 1. `git clone https://github.com/KrauseFx/dotfiles .dotfiles`
21 | 1. `ln -s ~/.dotfiles/.zshrc ~/.zshrc`
22 |
--------------------------------------------------------------------------------
/TerminalScreenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KrauseFx/dotfiles/bc7f2215fe3e901e76c1a6becef4590442273a08/TerminalScreenshot.png
--------------------------------------------------------------------------------
/dotfilesTweet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KrauseFx/dotfiles/bc7f2215fe3e901e76c1a6becef4590442273a08/dotfilesTweet.png
--------------------------------------------------------------------------------