Questions tagged [ps1]
The ps1 tag has no usage guidance.
9
questions with no upvoted or accepted answers
2
votes
1
answer
944
views
How can I set `less` or `more` max lines (scrollable height) limit/boundary in linux?
(Sorry for the title. Any suggestions?)
I've set my commandline PS1 to cover 3 lines:
white space
user, server and pwd
$ or # to input
I think less (or more?) is configured to break after window's ...
1
vote
1
answer
141
views
How to hide the directory in prompt if directory has no change?
Can the prompt be hidden if the directory has no change after the last command executed? Show only the $, show the path only if the directory was changed in the last command.
My ps1:
precmd () { ...
1
vote
1
answer
234
views
My ps1 line is changed when i logout and re login?
I have this in .bash_profile
if [ -n "$TMUX" ]; then
# called inside tmux session, do tmux things
. ~/.profile
fi
# Trigger ~/.bashrc commands
. ~/.bashrc
# ------------------------...
1
vote
0
answers
147
views
Windows file content indexation via script
I just came across via the following command, but it won't enable Windows file content indexation, as you know this feature allows you to use search to look inside files and see the content of it.
So ...
1
vote
1
answer
2k
views
PowerShell does not run Script from Batch File
I am working on a batch file that can run a PowerShell script when the batch file is double clicked. I am having difficulty getting the PowerShell script to do anything when activated by the batch ...
1
vote
1
answer
177
views
Formatting my $PS1 to x amount of character
I'm looking for a way to force my PS1 variable to a certain number of chars.
It currently looks like:
$PS1="\W $"
and I'm trying to keep the same number of characters regardless of the length of ...
0
votes
1
answer
571
views
Unable to customize command prompt after installing oh-my-posh Theme on Linux CentOS
I'm using oh-my-posh theme to customize my terminal. I want to configure my command prompt adding more details but it doesn't work after installing the theme. Screenshot:
Changing the command prompt ...
0
votes
0
answers
288
views
How to read HDD from an IBM PS/1 model 2133
I have an IDE HDD removed from an IBM PS/1 2133.
So far I've tried plugging into an IDE-USB adapter on Windows and Linux, both show a "no media" error, although a device does show up.
How can I get ...
-1
votes
1
answer
2k
views
NullReferenceException error in powershell
I am a newb in power-shell, i have written an script that stops process according to parameters in commandline. the problem is when i run the script in power shell it works but when i try to run it ...