Édition de lien symboliques avec sudoedit
This commit is contained in:
		
							parent
							
								
									48ad641495
								
							
						
					
					
						commit
						176cf2d05e
					
				| 
						 | 
					@ -4,7 +4,7 @@ nano () {
 | 
				
			||||||
      command nano $*
 | 
					      command nano $*
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      echo "Unwritable file, openning through sudoedit"
 | 
					      echo "Unwritable file, openning through sudoedit"
 | 
				
			||||||
      VISUAL=nano command sudoedit $*
 | 
					      VISUAL=nano command sudoedit $(realpath $*)
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    if [ -d "`dirname \"$1\"`" ]; then
 | 
					    if [ -d "`dirname \"$1\"`" ]; then
 | 
				
			||||||
| 
						 | 
					@ -28,7 +28,7 @@ vim () {
 | 
				
			||||||
      command vim $*
 | 
					      command vim $*
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      echo "Unwritable file, openning through sudoedit"
 | 
					      echo "Unwritable file, openning through sudoedit"
 | 
				
			||||||
      VISUAL=vim command sudoedit $*
 | 
					      VISUAL=vim command sudoedit $(realpath $*)
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    if [ -d "`dirname \"$1\"`" ]; then
 | 
					    if [ -d "`dirname \"$1\"`" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue