small tweaks here and there, add .sbt with ensime plugin enabled by default.
This commit is contained in:
parent
a1992c66ca
commit
ef64a1129a
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
.ropeproject
|
||||
dotfiles/vim/bundle/*
|
||||
dotfiles/vim/.netrwhist
|
||||
dotfiles/vim/.netrwhist
|
||||
dotfiles/sbt/0.13/plugins/project/
|
||||
dotfiles/sbt/0.13/plugins/target/
|
||||
dotfiles/sbt/boot/
|
@ -1 +1 @@
|
||||
Subproject commit 6b66ec5a6a2da6314ad0c9758d02d5486125d706
|
||||
Subproject commit bb1807256fd065252eb8c90d2f291e07d042262e
|
@ -21,5 +21,7 @@ if is_osx; then
|
||||
export CPPFLAGS=-Qunused-arguments
|
||||
fi
|
||||
|
||||
add_to_back_of_path "$(dotfiles_directory)/resources/python"
|
||||
|
||||
# Access gnu man pages.
|
||||
MANPATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnuman:$MANPATH"
|
||||
|
@ -6,6 +6,7 @@ alias tmux_cb_to_remote_cb='tmux saveb - | linux_nc_paste_to_remote_clipboard'
|
||||
alias timestamp='date +%s'
|
||||
alias fn='find . -name '
|
||||
alias prj='cd ~/Projects'
|
||||
alias tox27='tox -e py27 --'
|
||||
alias reload_tmux='tmux source-file ~/.tmux.conf'
|
||||
|
||||
# enables the sudoing of aliases.
|
||||
|
@ -1,5 +1,10 @@
|
||||
function dotfiles_directory() {
|
||||
echo $(dirname `readlink -f ~/.zshrc | xargs dirname`)
|
||||
}
|
||||
|
||||
|
||||
function go2dotfiles() {
|
||||
cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)
|
||||
cd $(dotfiles_directory)
|
||||
}
|
||||
|
||||
function update_dotfiles() {
|
||||
@ -202,11 +207,6 @@ function pip_package_location() {
|
||||
pip show $1 | grep Location | get_cols 2
|
||||
}
|
||||
|
||||
function make_ensime() {
|
||||
echo '\n\naddSbtPlugin("org.ensime" % "ensime-sbt-cmd" % "0.1.1")' >> project/plugins.sbt
|
||||
sbt "ensime generate"
|
||||
}
|
||||
|
||||
function set_modifier_keys_for_vendor_product_id() {
|
||||
defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 '(
|
||||
{
|
||||
|
@ -25,8 +25,9 @@ function remote_os_copy() {
|
||||
if is_osx;
|
||||
then
|
||||
_osx_nc_paste_to_remote_clipboard
|
||||
|
||||
else
|
||||
_linux_nc_paste_to_remote_clipboard
|
||||
_linux_nc_write_remote_clipboard
|
||||
fi
|
||||
}
|
||||
|
||||
|
3
dotfiles/sbt/0.13/plugins/plugins.sbt
Normal file
3
dotfiles/sbt/0.13/plugins/plugins.sbt
Normal file
@ -0,0 +1,3 @@
|
||||
resolvers += Resolver.sonatypeRepo("snapshots")
|
||||
|
||||
addSbtPlugin("org.ensime" % "ensime-sbt" % "0.1.5-SNAPSHOT")
|
10
setup.sh
10
setup.sh
@ -34,14 +34,6 @@ function symlink_dotfiles() {
|
||||
}
|
||||
|
||||
|
||||
function symlink_dotfiles_prompt() {
|
||||
read -p "Symlinking files from $DOTFILES_DIRECTORY. This ? (y/n) " -n 1
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo
|
||||
symlink_dotfiles
|
||||
fi
|
||||
}
|
||||
|
||||
function apt-get() {
|
||||
INSTALL="sudo apt-get -y install"
|
||||
$INSTALL zsh
|
||||
@ -95,7 +87,7 @@ function setup() {
|
||||
osx_config
|
||||
;;
|
||||
s)
|
||||
symlink_dotfiles_prompt
|
||||
symlink_dotfiles -o
|
||||
;;
|
||||
p)
|
||||
install_python_packages -h
|
||||
|
Loading…
Reference in New Issue
Block a user