forked from colonelpanic/dotfiles
small tweaks here and there, add .sbt with ensime plugin enabled by default.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user