12 lines
292 B
Fish
Executable File
12 lines
292 B
Fish
Executable File
#!/usr/bin/env fish
|
|
|
|
set inst_name $argv[1]
|
|
if test (count $argv) -eq 0
|
|
set script_dir (realpath (dirname (status -f)))
|
|
set inst_name (eval $script_dir"/docker_container_name.fish")
|
|
end
|
|
|
|
set working_dir (realpath (pwd))
|
|
echo $inst_name
|
|
docker exec -w $working_dir -it "$inst_name" bash
|