Compare commits
No commits in common. "f0d5bd12b02a7ecd585437640e9932d090551eb3" and "4e9a2f3804857a52b40bd5c780db0c01c33121f2" have entirely different histories.
f0d5bd12b0
...
4e9a2f3804
2 changed files with 13 additions and 17 deletions
2
cd.sh
2
cd.sh
|
@ -591,7 +591,7 @@ local path
|
|||
echo -n "\
|
||||
${path}
|
||||
↓
|
||||
${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}
|
||||
${CD_GIT_CHILD}
|
||||
"
|
||||
"${CD_PYTHON_ALIAS}" -m "${CD_GIT_CHILD}" "${@}"
|
||||
}
|
||||
|
|
|
@ -13,7 +13,18 @@ project = Project(projects)
|
|||
|
||||
|
||||
def cd_browse_workspace():
|
||||
browse(project.root)
|
||||
print(f'''\
|
||||
{project.root}
|
||||
↓
|
||||
''', end=str())
|
||||
paths = []
|
||||
for directory, directories, files in os.walk(project.root):
|
||||
for file in files:
|
||||
absolute_path = os.path.join(directory, file)
|
||||
relative_path = os.path.relpath(absolute_path, start=project.root)
|
||||
paths.append(relative_path)
|
||||
for path in sorted(paths):
|
||||
print(path)
|
||||
|
||||
|
||||
def cd_build_project():
|
||||
|
@ -64,19 +75,6 @@ def cd_synchronize():
|
|||
)
|
||||
|
||||
|
||||
def browse(root: str):
|
||||
paths = []
|
||||
for directory, _, files in os.walk(root):
|
||||
for file in files:
|
||||
absolute_path = os.path.join(directory, file)
|
||||
relative_path = os.path.relpath(absolute_path, start=root)
|
||||
paths.append(relative_path)
|
||||
open(path)
|
||||
for path in sorted(paths):
|
||||
print(path)
|
||||
shut(path)
|
||||
|
||||
|
||||
def install_commands(path):
|
||||
step('Install commands')
|
||||
user = '/usr/local/bin'
|
||||
|
@ -113,8 +111,6 @@ def set_ssh(*arguments):
|
|||
if ssh_hosts:
|
||||
fs.write(known, ssh_hosts)
|
||||
os.chmod(known, 0o400)
|
||||
#
|
||||
browse(home)
|
||||
|
||||
|
||||
def open(*arguments):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue