Compare commits
2 commits
4e9a2f3804
...
f0d5bd12b0
Author | SHA1 | Date | |
---|---|---|---|
f0d5bd12b0 | |||
0a1bb94e6c |
2 changed files with 17 additions and 13 deletions
2
cd.sh
2
cd.sh
|
@ -591,7 +591,7 @@ local path
|
|||
echo -n "\
|
||||
${path}
|
||||
↓
|
||||
${CD_GIT_CHILD}
|
||||
${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}
|
||||
"
|
||||
"${CD_PYTHON_ALIAS}" -m "${CD_GIT_CHILD}" "${@}"
|
||||
}
|
||||
|
|
|
@ -13,18 +13,7 @@ project = Project(projects)
|
|||
|
||||
|
||||
def cd_browse_workspace():
|
||||
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)
|
||||
browse(project.root)
|
||||
|
||||
|
||||
def cd_build_project():
|
||||
|
@ -75,6 +64,19 @@ 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'
|
||||
|
@ -111,6 +113,8 @@ def set_ssh(*arguments):
|
|||
if ssh_hosts:
|
||||
fs.write(known, ssh_hosts)
|
||||
os.chmod(known, 0o400)
|
||||
#
|
||||
browse(home)
|
||||
|
||||
|
||||
def open(*arguments):
|
||||
|
|
Loading…
Add table
Reference in a new issue