The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
179 views

Git different local directories for each branch

This is somewhat of a unique situation, I have a directory on my local drive (no Git repo) that I'd like to use as a new working tree on a branch from a Git repo within a separate directory also on my ...
0
votes
2answers
31 views

Management of directories and subrutines

From the current directory %CD%, I need to go inside a subfolder and execute a subrutineA, then go back to the %CD% directory and go to the next subfolder and execute the same subrutineA, this process ...
0
votes
0answers
187 views

Getting a setting, the chdir value, out of GNU Screen

I've been using screen's chdir command to set a new working directory for new screen windows, more on that later. What I need to do is find out what the setting was before I set it, so that I can set ...
2
votes
1answer
80 views

Git keeps forgetting the current directory

I've got a git repository, call it myscripts/. Within myscripts/ are subdirectories perl/, python/, and ruby/. For some reason, when I edit code in one of the subdirectories, Git forgets that the ...
5
votes
1answer
2k views

Start bash shell (cygwin) with correct path without changing directory

I need to run a cygwin shell script without changing the working directory, from outside the cygwin environment. If I run just \path\to\bash.exe -c command, then the path is not set correctly and ...
0
votes
1answer
990 views

Setting CMD CD to the directory that the batch was run in

I'm trying to create a batch script that will open a program in a different environment (so I can make a portable version of it). I use this set APPDATA=%CD%\data to tell it to do that. The problem ...
4
votes
6answers
3k views

Temporarily change directory for single batch-file command

In shell-scripting if I need to run a command from a directory I can us a subshell to ensure I return to the original context: (cd temporary/new/directory ; command) # now I am still in original ...
2
votes
5answers
793 views

Changing working directory of parent script from 'sourced' script

I want to change working directory of my script by another script that has been included. First script: #!/bin/bash pwd source script2 pwd Sedond script: cd .. pwd The result is following: ...
1
vote
2answers
879 views

Using screenrc, how can I make `C-a c` open a new window at the current window's working directory?

Using screenrc, how can I make C-a c open a new window at the current window's working directory? By default it appears to open the new window at the working directory at the time the original screen ...
2
votes
1answer
1k views

git: get current working dir

How I can get current working dir from console using git? something like: if I'm in: ~/projects/someproject/somesubfolder/, the console command should say /home/va1en0k/someproject/ (if there is a ...
1
vote
1answer
1k views

How to open a new terminal tab in Mac OS X with working directory same as the current terminal tab [duplicate]

Possible Duplicate: OS X Terminal.app: how to start a new tab in the same directory as the current tab? This is the default behavior in Ubuntu: when you open an new tab in a terminal, the ...
2
votes
2answers
708 views

How to get tty shell working directory?

Is it possible to get working directory of any of my tty shells? So\ get working directory of any shell in /dev/ttys??? belonging to me. I use OS X.