search for: ps1

Displaying 20 results from an estimated 195 matches for "ps1".

Did you mean: ps
2015 Jan 21
1
Re: [PATCH] fish: remove extra "prompt" checks
...changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fish/fish.c b/fish/fish.c > index 8b74c7b..71db83a 100644 > --- a/fish/fish.c > +++ b/fish/fish.c > @@ -661,8 +661,8 @@ rl_gets (int prompt) > line_read = NULL; > } > > - p = prompt && ps1 ? decode_ps1 (ps1) : NULL; > - line_read = readline (prompt ? (ps1 ? p : FISH) : ""); > + p = ps1 ? decode_ps1 (ps1) : NULL; > + line_read = readline (ps1 ? p : FISH); Can be simplified further: line_read = readline (ps1 ? decode_ps1 (ps1) : FISH); Regards, Hu >...
2012 Oct 10
6
Setting PS1 for ordinary users
CentOS-6 When I login as root I see this prompt: [root at vhost04 ~]# When I login as a non-priviledged user I see this instead: sh-4.1$ .bashrc and .bash_profile have identical contents in /root and /home/user. What causes the difference? Why? How does one change the default so that all normal users get a [userid at hostname pwd]$ prompt? I have loked in/etc/profile.d and /etc/bashrc
2015 Jan 20
9
[PATCH] daemon: readdir: fix invalid memory access on error
If "strdup (d->d_name)" fails with "i" > 0, then both "p" and "ret->guestfs_int_dirent_list_val" are non-null pointers, but the latter is no more valid (since "p" is the new realloc'ed buffer). Hence, trying to free both will access to invalid memory. Make sure to free only one of them, "p" if not null or
2012 Mar 15
3
Problem with stored configs / Invalid unicode escaping
...modules/production/bash/templates/squeeze/etc/skel/bashrc.erb # # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don''''t do anything [ -z "$PS1" ] && return # don''''t put duplicate lines in the history. See bash(1) for more options # don''''t overwrite GNU Midnight Commander''''s setting of `ignorespace''''. HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups...
2009 Oct 15
3
continuing issues with %post
...# GPG keys echo "Importing GPG keys ..." rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* /usr/bin/yum -y update When they're uncommented the box hangs, i'd love to see output. My second issue is a cosmetic one. I want to set a standard prompt in /etc/bashrc. Out of the box the bashrc PS1 lines: if [ "$PS1" ]; then [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ " I have to make changes to that second line so a sed substitution would probably be my best bet. I'm not sure how to grab the part i need and change it. Manually i ch...
2011 Apr 19
4
/etc/bashrc help!
...id -u) -eq 0 ]; then # you are root, set red colour prompt echo "###############################################" echo "### You are now working as ROOT. ###" echo "### Pay attention to what you type. ###" echo "###############################################" PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]" else # normal echo echo " ###########################################################" echo "Welcome $(whoami), here's something to start your day with:" echo echo `sh /etc/lines.sh /etc/quotes.txt` echo "...
2008 Jun 10
2
mac address in prompt
Hi there, for some reasons bash writes out my host's mac address as a result of including \h in PS1. Do you know why? This was not always so. [gergoe at x0-13-xx-xx-xx-xx ~]$ echo $PS1 [\u@\h \W]\$ - Gergely
2015 Jan 20
0
[PATCH] fish: remove extra "prompt" checks
...in is redundant. --- fish/fish.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/fish.c b/fish/fish.c index 8b74c7b..71db83a 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -661,8 +661,8 @@ rl_gets (int prompt) line_read = NULL; } - p = prompt && ps1 ? decode_ps1 (ps1) : NULL; - line_read = readline (prompt ? (ps1 ? p : FISH) : ""); + p = ps1 ? decode_ps1 (ps1) : NULL; + line_read = readline (ps1 ? p : FISH); if (ps_output) { /* GUESTFISH_OUTPUT */ CLEANUP_FREE char *po = decode_ps1 (ps_output); -- 1...
2005 Mar 27
5
Print from wine
I'm running debian sarge and have installed wine with "apt-get" (wine 20041201). Afterwards I configurated it with winetools. Everything went fine. I also installed the Internet Explorer and Office 2000. There were no problems during the installation and IE and Office run without problems besides printing. There I get error messages like "no printer installed". Is
2019 Jan 04
2
Docker on Centos 7
...gt; https://lists.centos.org/mailman/listinfo/centos > > Most likely you had hostname set in the bash prompt.? By default > containers run with the hostname=containerid. > > > # podman run -v /usr/bin/hostname:/usr/bin/hostname -ti fedora hostname > 3ac978bc84be > > > |PS1="\h$ " Should give you what you want # podman run -ti fedora sh > sh-4.4# PS1="\h# " 9007d2f699fb# exit # But I think this would need to > be added to the .bashrc or .bash_profile inside of the container image > you are running. | Also if you execute sh -l instead of s...
2013 Apr 13
1
how to add a row vector in a dataframe
...,function(i) >{glm.t<-glm(t~x1+x2+x3+x4+x5+x6+x7+I(x2^2)+I(x4^2)+I(x7^2)+x1:x3+x2:x4+x3:x5+x4:x6+x5:x7+x1:x6+x2:x3+x3:x4+x4:x5+x5:x6,family=binomial,data=simdata[,i]); >pshat<- predict(glm.t,type="response")}) >simdata1<-rbind(simdata,pshat=lstpshat) > >simdata.ps1<- simdata1 >simdata.ps1[]<-do.call(c,lapply(seq_len(ncol(simdata1)),function(i) lapply(simdata1[,i],function(x) x[simdata1[,i]$t==1]))) >lstm1<- lapply(seq_len(ncol(simdata.ps1)),function(i) {dat<-do.call(data.frame,lapply(simdata.ps1[,i],function(x) x));if(nrow(dat)!=0) >{...
2019 Jan 05
2
Docker on Centos 7
...ost likely you had hostname set in the bash prompt.? By default >>> containers run with the hostname=containerid. >>> >>> >>> # podman run -v /usr/bin/hostname:/usr/bin/hostname -ti fedora hostname >>> 3ac978bc84be >>> >>> >>> |PS1="\h$ " Should give you what you want # podman run -ti fedora sh >>> sh-4.4# PS1="\h# " 9007d2f699fb# exit # But I think this would need to >>> be added to the .bashrc or .bash_profile inside of the container image >>> you are running. | >> Also i...
2019 Jan 04
2
Docker on Centos 7
I recently updated docker to version 18.09 and I seem to have lost the container id in the command prompt when I exec into a running container, a very useful feature in the previous version I was running. I have not found any information in the Docker General Forum. Has anyone else seen this?
2006 Aug 05
0
cor of two matrices whose columns got shuffled
Hello, I'm trying to take the correlation of two distance matrices and get the r2 value ex) Ndisc PS1 Ntet Nsito NcB NcA PS3 NcC NiB NiA PS1 0.08945 Ntet 0.08601 0.02020 Nsito 0.09361 0.02780 0.02260...
2010 Nov 25
2
Terminal - name too long
Good day, > [johan at unknown2a6800000000 ~]$ How/where could I make the above a lot shorter please. Thanks Johan
2005 Oct 04
0
Problems connecting to APC/Smart-UPS 3000 RM
Hi all, I have an APC/Smart-UPS 3000 RM that I am trying to connect to nut via the usb port. I have nut running just fine on several other machines using APC ups's via the serial ports but this usb thing is making me crazy. If I do a "/sbin/newhidups -u root -D -a PS1" it recgonizes the ups and dumps a bunch of information like below: (porky pts12) # /sbin/newhidups -u root -D -D -a PS1 Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2) debug level is '2' Opening new device (051D/0002) Found 0x51d - Manufacturer : American Power Conversion - P...
2023 Mar 13
1
[V2V PATCH 1/1] convert_windows: add firstboot script to install drivers with pnputil
...his patch (which doesn't say much of course, because I > know precious little about Windows). What I'm noticing is "run > pnputil.exe before pnp_wait.exe before everything else". > > We do queue a script earlier than those, at priority 2500, called > "v2vnetcf.ps1". See configure_network_interfaces -> > add_firstboot_powershell, and the reference to RHBZ 1788823. > > And that script is exactly what tends *not* to work, and we've been > unable to get to the bottom of that issue. (See also RH 2068361 and > 1963032.) > > So......
2013 Jan 04
1
SpatialPolygon with the max value gets no color assigned in spplot function when using "at" parameter
...),c(0,1,1,0,0));colnames(p3)=c("x","y") p4=cbind(c(1,1,2,2,1),c(1,2,2,1,1));colnames(p4)=c("x","y") p5=cbind(c(2,2,3,3,2),c(0,1,1,0,0));colnames(p5)=c("x","y") p6=cbind(c(2,2,3,3,2),c(1,2,2,1,1));colnames(p6)=c("x","y") ps1=Polygons(list(Polygon(p1)), ID="ps1") ps2=Polygons(list(Polygon(p2)), ID="ps2") ps3=Polygons(list(Polygon(p3)), ID="ps3") ps4=Polygons(list(Polygon(p4)), ID="ps4") ps5=Polygons(list(Polygon(p5)), ID="ps5") ps6=Polygons(list(Polygon(p6)), ID="ps...
2011 Jan 13
3
/etc/bashrc causing probs..
...if [ $(id -u) -eq 0 ];then # you are rootecho "###############################################"echo "### You are now working as ROOT. ###"echo "### Pay attention to what you type. ###"echo "###############################################" PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]"else # nothing to doechoecho " ###########################################################"echo "Welcome $(whoami), here's something to start your day with:"echoecho `sh /etc/lines.sh /etc/quotes.txt`echo &quo...
2010 Mar 29
2
naming consecutive objects
...ould generate a loop: a<-c(1:98) for (i in a ) { cbind(vor.tile[[i]]$x, vor.tile[[i]]$y)->p rbind(p,c(p[1,]))->p.c Polygon(p.c)->pc.p Polygons(list(pc.p),sprintf("p%s",i))->pc.ps sprintf("pc.ps%s",i)<-pc.ps } I need to obtain 98 pc.ps objects (like: pc.ps1, pc.ps2....pc.ps98) but I d'ont use sprintf for it. How can made it? many tanks in advance -- View this message in context: http://n4.nabble.com/naming-consecutive-objects-tp1694985p1694985.html Sent from the R help mailing list archive at Nabble.com.