Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
6744958
add ruby linter dotfiles
Eschults Jul 2, 2018
eb2d7b1
add line to symlink prefs to dotfiles
Eschults Jul 3, 2018
bf7d33f
remove linters config key
Eschults Jul 3, 2018
6aae8d8
Merge pull request #29 from lewagon/add-ruby-linter
Eschults Jul 3, 2018
332e2c2
Disable GitGutter
ssaunier Jan 1, 2019
b9e2898
Merge branch 'master' of github.com:lewagon/dotfiles
ssaunier Jan 1, 2019
a6a30c2
remove A File Icon
Eschults Jan 7, 2019
9532ec0
Merge pull request #33 from lewagon/remove-a-file-icon
ssaunier Jan 7, 2019
5cfd724
Fixes #30
ssaunier Jan 15, 2019
b7cee2c
Fixes lewagon/setup#94
ssaunier Apr 7, 2019
a481e05
add git plugin to restore gitfast aliases
Eschults Apr 11, 2019
1d187d3
Merge pull request #38 from lewagon/add-git-plugin
ssaunier Apr 11, 2019
30be28d
Fix typo on Sublime Text setting
calvintan Jun 17, 2019
aec7b13
Merge pull request #42 from calvintan/master
ssaunier Aug 29, 2019
b4223c0
Remove gitfast plugin
ssaunier Oct 6, 2019
4b4b236
NVM + Anaconda in PATH
ssaunier Oct 6, 2019
91b8308
Prepare profile for Data Bootcamp
ssaunier Oct 6, 2019
d072f9e
Latest package install
ssaunier Oct 6, 2019
facb098
Anaconda prompt
ssaunier Oct 7, 2019
ec927a7
Prepare setup for Data Bootcamp (pyenv / virtualenv). Should not conf…
ssaunier Jan 11, 2020
97dc215
Fix rbenv + pyenv on Linux
ssaunier Jan 11, 2020
efb51d3
add `BracketHighlighter` as default setup pack
primaulia Mar 14, 2020
9b4c389
Merge pull request #57 from primaulia/patch-1
Eschults Mar 15, 2020
0a0c6fb
Update Package Control.sublime-settings
primaulia Apr 18, 2020
fe2b96c
Change default aliases
ssaunier May 25, 2020
046c269
Merge pull request #61 from primaulia/patch-2
ssaunier Jun 21, 2020
f61c1fd
Fix color highlight package
dmilon Jun 30, 2020
f104b06
Merge pull request #66 from lewagon/fix-color-highlight-package
dmilon Jun 30, 2020
acfcea4
Update zshrc comment
hjlarry Jul 2, 2020
dd1f4e8
ignore Python
krokrob Jul 8, 2020
2d32105
Merge pull request #69 from lewagon/ignore-python
barangerbenjamin Jul 8, 2020
716592c
Merge pull request #67 from hjlarry/patch-1
ssaunier Oct 7, 2020
6011a65
update nvm load
dmilon Nov 20, 2020
62ff172
silence nvm to remove unecesary stdout
dmilon Nov 23, 2020
4d3aa90
Add default pull reconciliation strategy for git
Lomig Dec 2, 2020
5be0d93
Merge pull request #72 from lewagon/update-nvm-load
dmilon Dec 22, 2020
28e8446
remove virtualenv auto-loading
krokrob Dec 30, 2020
008ed0a
Merge pull request #74 from lewagon/stop-loading-virtualenv
ssaunier Dec 30, 2020
bc46b6d
Merge pull request #73 from Lomig/fix-warning-during-pull
ssaunier Dec 30, 2020
6fe767f
Disable PYENV_VIRTUALENV_DISABLE_PROMPT
ssaunier Dec 31, 2020
528adc6
Add Python activated environment to the right prompt
ssaunier Dec 31, 2020
7b62a11
Merge pull request #75 from lewagon/pyenv
krokrob Dec 31, 2020
00b400c
add anaconda package to sublime text
krokrob Dec 31, 2020
d206cd7
add flake8 linter and AutoPEP8 formatter
krokrob Dec 31, 2020
0ead939
Merge pull request #76 from lewagon/docstring
ssaunier Dec 31, 2020
3b9fdb7
Merge branch 'master' into python-linter-code-formatter
ssaunier Dec 31, 2020
aff9529
Merge pull request #77 from lewagon/python-linter-code-formatter
ssaunier Dec 31, 2020
8063c92
git clone zsh autosuggestions
juliends Jan 5, 2021
d48b9de
Merge pull request #78 from lewagon/fix-zsh-syntax-highlighting
Eschults Jan 5, 2021
377dd93
sort sublime package list
dmilon Jan 9, 2021
40042bd
update nvm path
dmilon Jan 11, 2021
d13598e
Merge pull request #79 from lewagon/sort-sublime-packages
dmilon Jan 11, 2021
ecf0523
reverting to usual NVM dir
dmilon Jan 11, 2021
b6bb2a3
Fix missing comma in stt packlist
ElvisDot Jan 11, 2021
d9ffcd6
Merge pull request #81 from ElvisDot/pr-fix-packlist
ssaunier Jan 11, 2021
a5419c5
load only if nvm is installed
dmilon Mar 9, 2021
93cc99e
Merge pull request #83 from lewagon/branch-load-nvm
barangerbenjamin Mar 10, 2021
266faef
add vscode settings
dmilon Mar 31, 2021
0c7a16a
updating install.sh
dmilon Apr 1, 2021
8c66ffc
remove package control
dmilon Apr 1, 2021
b56de43
remove sublime linter sublime settings
dmilon Apr 1, 2021
7833fdc
update install.sh
dmilon Apr 1, 2021
b770cf2
fix bug and restore backup command of vscode settings
dmilon Apr 2, 2021
c80f17e
override existing symlink
dmilon Apr 2, 2021
58307e8
exclude vscode settings from home symlinks
dmilon Apr 2, 2021
148223b
update vscode_settings.json
dmilon Apr 2, 2021
ace6f33
restore zshrc options
dmilon Apr 3, 2021
88073e7
update vscode settings
dmilon Apr 3, 2021
159d33c
add disable git to vscode settings
dmilon Apr 5, 2021
c288f20
replace syntax highlighting extension protocol
dmilon Apr 5, 2021
a89b755
remove .git extension
dmilon Apr 5, 2021
5cf33ac
add ssh passphrase config file
dmilon Apr 6, 2021
f62be17
adding a new dotfile for ssh passphrase management on macos
dmilon Apr 6, 2021
6ff2ae0
refactor install.sh
dmilon Apr 6, 2021
25d7dac
import default vscode settings.json
dmilon Jun 18, 2021
2d4458c
update config
dmilon Jun 18, 2021
cab3bcb
remove unused files and ssh-add for macos
dmilon Jun 18, 2021
a91a7a1
update code path for wsl
dmilon Jun 18, 2021
34747cf
update wsl code path
dmilon Jun 18, 2021
a0c3967
add code as editor in gitconfig
dmilon Jun 18, 2021
99bf41f
remove git config editor command and add the corresponding line in gi…
dmilon Jun 18, 2021
90f068a
protect load_nvmrc call when nvm is not installed yet
dmilon Jun 18, 2021
1142a96
add env var to disable warning
dmilon Jun 21, 2021
0e657e2
update Darwin
dmilon Jun 21, 2021
860da75
protect load nvm
dmilon Jun 21, 2021
f60e551
remove load-nvmrc precondition
dmilon Jun 21, 2021
3b23d3d
add if nvm in load-nvmrc script
dmilon Jun 21, 2021
b7fa9f3
fix typo
dmilon Jun 21, 2021
c17034b
add &
dmilon Jun 21, 2021
79ba57c
fix ssh key name
dmilon Jun 21, 2021
1a572c9
update condition
dmilon Jun 21, 2021
0f771c5
remove temp echo
dmilon Jun 21, 2021
07282c6
force to redo the symlink if already exists
dmilon Jun 21, 2021
38211f7
refactor symlink function
dmilon Jun 21, 2021
d4bf6b7
fix ssh key file name
dmilon Jun 21, 2021
2e1562e
dotfiles are for web and data students
dmilon Jun 22, 2021
3a8a127
merge settings from web dev and data science
dmilon Jun 22, 2021
b3c6458
solve conflicts
Eschults Jun 23, 2021
647f3b2
remove sublime setting
Eschults Jun 23, 2021
9e3507f
Merge pull request #85 from lewagon/vscode
Eschults Jun 23, 2021
f30d1b4
fixes #89
Eschults Jun 23, 2021
9694ea7
add a profile to the setup in order to handle the PATH for pyenv
gmanchon Jul 5, 2021
d699d39
protect pyenv command for web setup
gmanchon Jul 5, 2021
ac3b581
Remove Ruby extension settings messing with the editor
db0sch Jul 7, 2021
0388946
Merge pull request #91 from lewagon/vscode-ruby-enhanced-settings
dmilon Jul 7, 2021
38190cc
Merge pull request #90 from lewagon/split-pyenv-setup
krokrob Jul 7, 2021
d5ae2d7
rename profile into zprofile so that it is sourced by zsh
gmanchon Jul 20, 2021
f61c2b1
remove export PATH from zshrc
dmilon Jul 20, 2021
cb211d1
Merge pull request #94 from lewagon/correct-zprofile
dmilon Jul 20, 2021
9bffc85
disable virtual env prompt
dmilon Aug 4, 2021
f002b0e
Merge pull request #95 from lewagon/disable-virtualenv-prompt
dmilon Aug 4, 2021
ef9177e
add quoting around git email and full_name, to make the script less l…
TedHartDavis Oct 31, 2021
fb28563
add emmet option then format and sort json
dmilon Nov 8, 2021
9444223
add bracket pairs
dmilon Nov 22, 2021
5a6f611
add bracket pair colorization setting
dmilon Nov 22, 2021
07cbca9
update conf to have vscode env match pyenv according to https://githu…
gmanchon Jan 6, 2022
02ceced
restore python path
gmanchon Jan 6, 2022
09f4ef0
add vs code keybindings
dmilon Jan 6, 2022
97c9fd1
Merge pull request #98 from TedsterTech/master
dmilon Jan 6, 2022
e2243ad
add EDITOR env var in zshrc
dmilon Jan 6, 2022
3ad4f04
Update settings.json
brunolajoie Jan 6, 2022
3f435c6
Merge pull request #100 from lewagon/vscode-env
brunolajoie Jan 6, 2022
a6633f8
Merge branch 'master' into add-vscode-keybindings
dmilon Jan 6, 2022
2fe34a0
sort json
dmilon Jan 6, 2022
85a5ea1
add python specific vscode settings
brunolajoie Jan 6, 2022
0fd7cec
Merge branch 'master' into vs-code-settings-with-python
brunolajoie Jan 6, 2022
b6d8e64
Merge pull request #101 from lewagon/add-vscode-keybindings
dmilon Jan 6, 2022
5515c98
Merge branch 'master' into vs-code-settings-with-python
dmilon Jan 6, 2022
6dfff6e
Update settings.json
brunolajoie Jan 6, 2022
1ba1bd4
converge and sort
dmilon Jan 6, 2022
0db64b2
Merge pull request #102 from lewagon/vs-code-settings-with-python
brunolajoie Jan 6, 2022
dff8b2c
use ipdb as the default Python debugger
krokrob Jan 19, 2022
b7a36d1
Merge pull request #103 from lewagon/breakpoint
gmanchon Jan 20, 2022
c0aeb01
add wait flag
dmilon Jan 25, 2022
82abf98
Merge pull request #105 from lewagon/add-wait
dmilon Jan 25, 2022
ff9d246
add default branch master to gitconfig
dmilon Mar 11, 2022
ce32fb8
update vscode setup
brunolajoie May 4, 2022
758b3e0
Disable lt alias in favor of https://github.com/localtunnel/localtunn…
ssaunier May 8, 2022
39179a8
Update settings.json
brunolajoie May 10, 2022
1a98e79
Merge pull request #111 from lewagon/vscode-setup
dmilon May 10, 2022
8525ce9
Remove pyenv plugin
ssaunier Jun 10, 2022
77d1f50
add default size for vscode to 'maximized'
brunolajoie Jun 13, 2022
8c0c79d
Merge pull request #113 from lewagon/vs-code-default-size
dmilon Jun 13, 2022
4474fab
push default terminal position to right
krokrob Jun 20, 2022
47ecd67
Merge pull request #114 from lewagon/default-panel-right
dmilon Jun 20, 2022
d0cc781
Merge pull request #112 from lewagon/pyenv
dmilon Jul 5, 2022
ef767f5
remove now unused sublime package control file
dmilon Jul 12, 2022
afa64ad
make git aliases agnostic of git default branch name
dmilon Aug 19, 2022
732604f
use git defaultBranch alias
dmilon Aug 19, 2022
75f4d71
Merge pull request #120 from lewagon/make-git-aliases-agnostic-of-git…
ssaunier Aug 29, 2022
f2a48de
spacing
gmanchon Oct 11, 2022
8af3b5e
Merge pull request #124 from lewagon/typo
gmanchon Oct 11, 2022
f6267e0
added check for virtualenv
olivergiles Oct 25, 2022
a478c6d
updated command check
olivergiles Oct 26, 2022
396d42a
silent run of virtualenv init
olivergiles Oct 26, 2022
ad8926a
extra set of brackets to pipe entire eval
olivergiles Oct 26, 2022
6721314
create virtualenv hook function to allow eval to be redirected to /de…
olivergiles Oct 26, 2022
637b899
redirect only std err
olivergiles Oct 26, 2022
c4c24cb
Merge pull request #127 from lewagon/compatibility-with-data-eng
gmanchon Oct 26, 2022
1a0008d
vs code remove .venv folder from search
brunolajoie Nov 30, 2022
554ac2a
merge master
brunolajoie Nov 30, 2022
749f928
Merge pull request #129 from lewagon/vs-code-remove-venv-from-search
olivergiles Dec 1, 2022
56cc1a0
Fixes #126
ssaunier Dec 13, 2022
f4c909c
Fixes #138
ssaunier May 14, 2023
adf05d5
Create LICENSE
ssaunier May 25, 2023
f9b3da1
add pryrc
tchiadeu Aug 22, 2024
64a859f
add pryrc in files to config
tchiadeu Aug 28, 2024
903ad73
reorder config files
tchiadeu Aug 28, 2024
54a90f9
Merge pull request #163 from tchiadeu/pryrc
ssaunier Aug 29, 2024
9cdda31
My identity for @lewagon in the gitconfig
Nov 11, 2025
659020a
My identity for @lewagon in the gitconfig
krokrob Nov 17, 2025
e4a93c8
Revert "My identity for @lewagon in the gitconfig"
krokrob Dec 2, 2025
0e5fdfe
Revert "My identity for @lewagon in the gitconfig"
krokrob Dec 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 La Loco SAS, head of Le Wagon Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 0 additions & 15 deletions Package Control.sublime-settings

This file was deleted.

40 changes: 0 additions & 40 deletions Preferences.sublime-settings

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
This repository is used by [Le Wagon](https://www.lewagon.com) students during our 9-week [coding bootcamp](https://www.lewagon.com).
This repository is used by [Le Wagon](https://www.lewagon.com) students.

## Toolset

- [oh-my-zsh](http://ohmyz.sh/)
- [Sublime Text](https://www.sublimetext.com/)
- [Visual Studio Code](https://code.visualstudio.com/)
- [git](https://git-scm.com/)
- Ruby via [`rbenv`](https://github.com/rbenv/rbenv)
12 changes: 7 additions & 5 deletions aliases
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Get External IP / local IPs
alias ip="curl ipinfo.io/ip"
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
alias speedtest="wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
# Get External IP / Internet Speed
alias myip="curl https://ipinfo.io/json" # or /ip for plain-text ip
alias speedtest="curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -"

# Quickly serve the current directory as HTTP
alias serve='ruby -run -e httpd . -p 8000' # Or python -m SimpleHTTPServer :)
alias serve='ruby -run -e httpd . -p 8000' # Or python -m SimpleHTTPServer :)

# NOTE: On Q3 2021, Le Wagon decided to change the Web Dev curriculum default text editor
alias stt="echo 'Launching VS Code instead of Sublime Text... (cf ~/.aliases)' && code ."
4 changes: 4 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519
9 changes: 0 additions & 9 deletions gemrc

This file was deleted.

4 changes: 2 additions & 2 deletions git_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ read full_name
echo "Type in your email address (the one used for your GitHub account): "
read email

git config --global user.email $email
git config --global user.name $full_name
git config --global user.email "$email"
git config --global user.name "$full_name"

git add .
git commit --message "My identity for @lewagon in the gitconfig"
Expand Down
22 changes: 18 additions & 4 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

[core]
pager = less -FRSX
editor = code --wait

[alias]
co = checkout
Expand All @@ -22,8 +23,14 @@
dt = difftool
stat = !git --no-pager diff --stat

# Clean merged branches
sweep = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin
# Set remotes/origin/HEAD -> defaultBranch (copied from https://stackoverflow.com/a/67672350/14870317)
remoteSetHead = remote set-head origin --auto

# Get default branch name (copied from https://stackoverflow.com/a/67672350/14870317)
defaultBranch = !git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4

# Clean merged branches (adapted from https://stackoverflow.com/a/6127884/14870317)
sweep = !git branch --merged $(git defaultBranch) | grep -E -v " $(git defaultBranch)$" | xargs -r git branch -d && git remote prune origin

# http://www.jukie.net/bart/blog/pimping-out-git-log
lg = log --graph --all --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr) %C(bold blue)%an%Creset %C(yellow)%d%Creset'
Expand All @@ -32,7 +39,8 @@
# Then other can access via `git clone git://#{YOUR_IP_ADDRESS}/
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git

m = checkout master
# Checkout to defaultBranch
m = !git checkout $(git defaultBranch)

# Removes a file from the index
unstage = reset HEAD --
Expand All @@ -41,7 +49,13 @@
autocorrect = 1

[push]
default = simple
default = simple

[branch "master"]
mergeoptions = --no-edit

[pull]
rebase = false

[init]
defaultBranch = master
5 changes: 0 additions & 5 deletions gitignore

This file was deleted.

87 changes: 49 additions & 38 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,64 +1,75 @@
#!/bin/zsh

# Define a function which rename a `target` file to `target.backup` if the file
# exists and if it's a 'real' file, ie not a symlink
backup() {
target=$1
if [ -e "$target" ]; then # Does the config file already exist?
if [ ! -L "$target" ]; then # as a pure file?
mv "$target" "$target.backup" # Then backup it
if [ -e "$target" ]; then
if [ ! -L "$target" ]; then
mv "$target" "$target.backup"
echo "-----> Moved your old $target config file to $target.backup"
fi
fi
}

#!/bin/zsh
for name in *; do
symlink() {
file=$1
link=$2
if [ ! -e "$link" ]; then
echo "-----> Symlinking your new $link"
ln -s $file $link
fi
}

# For all files `$name` in the present folder except `*.sh`, `README.md`, `settings.json`,
# and `config`, backup the target file located at `~/.$name` and symlink `$name` to `~/.$name`
for name in aliases gitconfig irbrc pryrc rspec zprofile zshrc; do
if [ ! -d "$name" ]; then
target="$HOME/.$name"
if [[ ! "$name" =~ '\.sh$' ]] && [ "$name" != 'README.md' ] && [[ ! "$name" =~ '\.sublime-settings$' ]]; then
backup $target

if [ ! -e "$target" ]; then
echo "-----> Symlinking your new $target"
ln -s "$PWD/$name" "$target"
fi
fi
backup $target
symlink $PWD/$name $target
fi
done

REGULAR="\\033[0;39m"
YELLOW="\\033[1;33m"
GREEN="\\033[1;32m"

# zsh plugins
# Install zsh-syntax-highlighting plugin
CURRENT_DIR=`pwd`
ZSH_PLUGINS_DIR="$HOME/.oh-my-zsh/custom/plugins"
mkdir -p "$ZSH_PLUGINS_DIR" && cd "$ZSH_PLUGINS_DIR"
if [ ! -d "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting" ]; then
echo "-----> Installing zsh plugin 'zsh-syntax-highlighting'..."
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting
fi
cd "$CURRENT_DIR"

setopt nocasematch
if [[ ! `uname` =~ "darwin" ]]; then
git config --global core.editor "subl -n -w $@ >/dev/null 2>&1"
echo 'export BUNDLER_EDITOR="subl $@ >/dev/null 2>&1 -a"' >> zshrc
# Symlink VS Code settings and keybindings to the present `settings.json` and `keybindings.json` files
# If it's a macOS
if [[ `uname` =~ "Darwin" ]]; then
CODE_PATH=~/Library/Application\ Support/Code/User
# Else, it's a Linux
else
git config --global core.editor "'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' -n -w"
bundler_editor="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
echo "export BUNDLER_EDITOR=\"${bundler_editor} -a\"" >> zshrc
CODE_PATH=~/.config/Code/User
# If this folder doesn't exist, it's a WSL
if [ ! -e $CODE_PATH ]; then
CODE_PATH=~/.vscode-server/data/Machine
fi
fi

# Sublime Text
if [[ ! `uname` =~ "darwin" ]]; then
SUBL_PATH=~/.config/sublime-text-3
else
SUBL_PATH=~/Library/Application\ Support/Sublime\ Text\ 3
for name in settings.json keybindings.json; do
target="$CODE_PATH/$name"
backup $target
symlink $PWD/$name $target
done

# Symlink SSH config file to the present `config` file for macOS and add SSH passphrase to the keychain
if [[ `uname` =~ "Darwin" ]]; then
target=~/.ssh/config
backup $target
symlink $PWD/config $target
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
fi
mkdir -p $SUBL_PATH/Packages/User $SUBL_PATH/Installed\ Packages
backup "$SUBL_PATH/Packages/User/Preferences.sublime-settings"
curl -k https://sublime.wbond.net/Package%20Control.sublime-package > $SUBL_PATH/Installed\ Packages/Package\ Control.sublime-package
ln -s $PWD/Preferences.sublime-settings $SUBL_PATH/Packages/User/Preferences.sublime-settings
ln -s $PWD/Package\ Control.sublime-settings $SUBL_PATH/Packages/User/Package\ Control.sublime-settings

zsh ~/.zshrc
# Refresh the current terminal with the newly installed configuration
exec zsh

echo "👌 Carry on with git setup!"
echo "👌 Carry on with git setup!"
13 changes: 13 additions & 0 deletions keybindings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+v",
"command": "pasteAndIndent.action",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+shift+v",
"command": "pasteAndIndent.action",
"when": "editorTextFocus && !editorReadonly"
}
]
36 changes: 36 additions & 0 deletions pryrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# https://github.com/pry/pry/tree/master/lib/pry

if defined?(Rails)
short_env_name_options = {
'development' => 'dev',
'production' => 'prod'
}
app_name = Rails.application.class.module_parent_name.underscore.dasherize
env_name = short_env_name_options.fetch(Rails.env) { Rails.env }
description = 'Prompt has to match the rails app name'
else
current_directory = Dir.pwd.split('/').last.to_s
description = 'Prompt has to match the current directory name'
end

# https://github.com/pry/pry/blob/master/lib/pry/prompt.rb
Pry::Prompt.add(:current_app) do |context, nesting, pry_instance, sep|
format(
'[%<in_count>s] %<current_app>s(%<context>s)%<nesting>s%<separator>s ',
in_count: pry_instance.input_ring.count,
current_app: app_name || current_directory,
context: env_name || Pry.view_clip(context),
nesting: (nesting > 0 ? ":#{nesting}" : ''),
separator: sep
)
end

prompt = Pry::Prompt[:current_app]
procs = [
proc { |*args| prompt.wait_proc.call(*args).to_s },
proc { |*args| prompt.incomplete_proc.call(*args).to_s }
]

Pry.config.prompt = Pry::Prompt.new(
'custom_app_prompt', description, procs
)
Loading