mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
Remove license from individual files, consolidate information into AUTHORS and LICENSE
This commit is contained in:
21
bin/_j
21
bin/_j
@@ -1,23 +1,6 @@
|
||||
#compdef j
|
||||
|
||||
#Copyright Joel Schaerer 2008, 2009
|
||||
#This file is part of autojump
|
||||
|
||||
#autojump is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#autojump is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
cur=${words[2, -1]}
|
||||
|
||||
autojump --completion ${=cur[*]} | while read i; do
|
||||
compadd -U "$i";
|
||||
autojump --completion ${=cur[*]} | while read i; do
|
||||
compadd -U "$i";
|
||||
done
|
||||
|
||||
20
bin/autojump
20
bin/autojump
@@ -1,24 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
"""Copyright Joel Schaerer 2008-2012
|
||||
This file is part of autojump
|
||||
|
||||
autojump is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
autojump is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Autojump is a small tool that maintains a database of your most
|
||||
used directories, and finds the best match to help you jump to
|
||||
frequently used places."""
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -1,20 +1,3 @@
|
||||
#Copyright Joel Schaerer 2008, 2009
|
||||
#This file is part of autojump
|
||||
|
||||
#autojump is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#autojump is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#This shell snippet sets the prompt command and the necessary aliases
|
||||
_autojump()
|
||||
{
|
||||
local cur
|
||||
|
||||
@@ -1,19 +1,4 @@
|
||||
# Source autojump on BASH or ZSH depending on the shell
|
||||
#Copyright Joel Schaerer 2008, 2009
|
||||
#This file is part of autojump
|
||||
|
||||
#autojump is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#autojump is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
if [ "$BASH_VERSION" ] && [ -n "$PS1" ] && echo $SHELLOPTS | grep -v posix >>/dev/null; then
|
||||
if [ -f ~/.autojump/etc/profile.d/autojump.bash ]; then
|
||||
source ~/.autojump/etc/profile.d/autojump.bash
|
||||
|
||||
@@ -1,19 +1,3 @@
|
||||
#Copyright Joel Schaerer 2008, 2009
|
||||
#This file is part of autojump
|
||||
|
||||
#autojump is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#autojump is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# determine the data directory according to the XDG Base Directory Specification
|
||||
if [[ -n ${XDG_DATA_HOME} ]] && [[ ${XDG_DATA_HOME} =~ ${USER} ]]; then
|
||||
export AUTOJUMP_DATA_DIR="${XDG_DATA_HOME}/autojump"
|
||||
|
||||
@@ -1,21 +1,4 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
#Copyright Joel Schaerer and Pierre Gueth 2008, 2009
|
||||
#This file is part of autojump
|
||||
|
||||
#autojump is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#autojump is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import subprocess
|
||||
import cPickle
|
||||
import os.path
|
||||
@@ -127,7 +110,7 @@ def popup(sender,button,activation):
|
||||
else:
|
||||
def collapse_home(path):
|
||||
return path
|
||||
|
||||
|
||||
menu=gtk.Menu()
|
||||
if defaults["invert"]:
|
||||
item=gtk.ImageMenuItem(stock_id=gtk.STOCK_QUIT)
|
||||
@@ -138,7 +121,7 @@ def popup(sender,button,activation):
|
||||
menu.append(item)
|
||||
|
||||
menu.append(gtk.SeparatorMenuItem())
|
||||
|
||||
|
||||
for path in reversed(paths):
|
||||
actions=get_actions(path)
|
||||
if not actions: continue
|
||||
@@ -166,7 +149,7 @@ def popup(sender,button,activation):
|
||||
menu.append(item)
|
||||
|
||||
menu.append(gtk.SeparatorMenuItem())
|
||||
|
||||
|
||||
item=gtk.ImageMenuItem(stock_id=gtk.STOCK_PREFERENCES)
|
||||
item.connect("activate",settings)
|
||||
menu.append(item)
|
||||
|
||||
Reference in New Issue
Block a user