History command is not working in a non-interactive SSH command from another Linux machine

I have a little quirk with my Linux machines and I suspect it’s due to the fact that I define my history file in my .bashrc file like this: export HISTFILE=~/.history From another machine I like to run a non-interactive ssh command to see things I’ve done on that other machine. I often like to… Read More History command is not working in a non-interactive SSH command from another Linux machine

History command is not working in a non-interactive SSH command from another Linux machine

I have a little quirk with my Linux machines and I suspect it’s due to the fact that I define my history file in my .bashrc file like this: export HISTFILE=~/.history From another machine I like to run a non-interactive ssh command to see things I’ve done on that other machine. I often like to… Read More History command is not working in a non-interactive SSH command from another Linux machine

PowerShell setting environment variable to subexpression discards newline

I have a python script: # temp.py print("foo\nbar") I can run this in powershell: > python .\temp.py foo bar I want to set the environment variable FOO to the output of this python script. However, doing so changes the newline to a space: > $env:FOO=$(python .\temp.py) > $env:FOO foo bar What I’ve Tried Verify that… Read More PowerShell setting environment variable to subexpression discards newline

When I write in the terminal using python in VScode i can never write in the terminal like the tutorials are doing. how do I fix that?

this is what i get when I write in the terminal, (Im sorry, im super new) >Solution : You are typing in a z shell, but you are trying to execute python code. To enter python’s interactive mode, you can simply type /usr/bin/local/python3 (or python3 directly might work if things are setup correctly on your… Read More When I write in the terminal using python in VScode i can never write in the terminal like the tutorials are doing. how do I fix that?

Is it possible to set your git pull <remote_master> so that you can just write git pull in the future and it pulls this <remote_master>?

I am working on a git repository that has branches constantly being merged into it, and I would like to somehow sync git pull <remote_master> So that in the future I just need to execute git pull And it will execute git pull from this <remote_master> ; is this possible? I am on a Linux… Read More Is it possible to set your git pull <remote_master> so that you can just write git pull in the future and it pulls this <remote_master>?