Skip to main content

All Questions

Tagged with
0 votes
1 answer
272 views

How to source from stdout for both Linux and MacOS?

On Linux I can do: source <(cat .env | grep ANDROID_GRADLE_TASK) But on MacOS, this doesn't do anything (no error, and no source) I have tried to replace -di with --decode --input, it didn't help. ...
Dimitri Kopriwa's user avatar
10 votes
1 answer
1k views

MacOS Terminal start up slow, the window title transitions between "login", "env", "bash" then "zsh" - but /bin/zsh starts fast in isolation

I am having slow terminal startup times, in the 2 seconds range BUT only when opening a new Terminal window/tab (both iTerm2 and Terminal). When launching zsh from an existing terminal window it ...
David Alsh's user avatar
0 votes
1 answer
629 views

Warp terminal launch through skhd

Did anyone get [Warp Terminal][1] to work with [skhd][2]? I use to use Kitty with cmd - return : /Applications/kitty.app/Contents/MacOS/kitty --single-instance -d ~ I'm trying to get launch it with: ...
Anders Aaen Springborg's user avatar
0 votes
0 answers
268 views

nohup bash function

In my .bashrc: function keepassxc(){ "/Applications/KeePassXC.app/Contents/MacOS/KeePassXC" "${@}" } export -f keepassxc From Terminal: $ nohup keepassxc nohup: ignoring input ...
Porcupine's user avatar
  • 2,146
1 vote
1 answer
936 views

Bash macOS terminal Ctrl+C to kill all processes

I was trying to pipe the rsync output to a custom function, and use that to output custom information accordingly. log_output() { while read -r dir; do last_slash_index=$(echo $dir | awk -F &...
Donald Zhu's user avatar
0 votes
0 answers
2k views

Getting "unexpected EOF while looking for matching ``'"every time I enter the terminal

I am running the latest version of OSX but this error has been occurring before multiple updates, I am not sure what really causes it, everytime I enter the terminal I get the following: Last login: ...
Sergio's user avatar
  • 113
0 votes
0 answers
1k views

bash terminal : command not found & zsh terminal : not found

Can someone explain me and help me how can I fix it ? this is what I see bash termnial : bash: rbenv: command not found bash: eva: command not found bash: rbenv: command not found bash: Source: ...
Ta THR's user avatar
  • 1
1 vote
1 answer
214 views

How to search for zero kb files and find larger equivalent

I had an issue with my Linux SAMBA server and it has corrupted a good few of my photos (several hundreds of files in tens of directories). I have a Mac with a time machine backup and it has a good ...
square_eyes's user avatar
0 votes
2 answers
1k views

Bash script has become corrupt

I have made a bash script that creates some simple macOS ISO images and they were all originally working. Now for some reason none of my echo commands are working, however, weirdly if I type the ...
willowen100's user avatar
0 votes
1 answer
299 views

Why does my bash command have a "%" sign instead of a "$" and why won't it work?

I need to use my terminal to make an edit allowing me to fully access CUPS (to add a printer to my computer). Yet, my bash symbol is a "%" sign not a the typical "$" symbol... and ...
Dan Bassett's user avatar
0 votes
1 answer
262 views

Rename Files in Directory Appending Three Digit Numbers and Spaces and Varying Extensions via Terminal

I have a list of files in a directory that display like this via an ls command: 01-Campout 2001.jpg 2-Campout 2001.png Campout 2001 - 3 of 21.tiff Campout 2001 - 4.pdf I would like to know what bash ...
ksnowdayz's user avatar
4 votes
1 answer
5k views

Using multiple alias in a single command

I'm facing problem in using multiple alias in a single line on Mac bash Terminal. I have setup below alias in my .bash_profile file alias gc=gcloud alias cmp=compute alias ins=instances alias pdev=&...
Learner's user avatar
  • 297
0 votes
0 answers
3k views

Is it possible to change the IP in sending Curl the request?

I'm using this code to change the IP address curl --header "X-Forwarded-for: $((RANDOM % 256)).$((RANDOM % 256)).$((RANDOM % 256)).$((RANDOM % 256))" 'www.example.com' In fact, the target ...
shadi ahmadian's user avatar
0 votes
1 answer
484 views

How to add echo inside function

I am decently new to the terminal. I am currently trying to make a small function in my .bash_profile that would send a message to a specific contact from the terminal (without opening the Messages ...
Francesco's user avatar
0 votes
1 answer
367 views

Can a Bash alias command be inserted into my macOS terminal text input so I can tweak and run it?

I have some Bash aliases which I use to perform standard day-to-day tasks in my macOS terminal using the Bash shell. Sometimes I find myself wanting to run a one-off command very similar to an alias ...
M. Justin's user avatar
  • 293

15 30 50 per page