We investigate the controllable behavior of nonautonomous soliton in external potentials with variable dispersion and nonlinearity management functions, which describes the propagation of optical pulses in an inhomogeneous fiber system. We derive the Lax pair with a variable spectral parameter and the exact multi-soliton solution is generated via Darboux transformation. Based on these solutions, several novel optical solitons are constructed by selecting appropriate functions and the main evolution features of these waves are shown by some interesting figures with computer simulation. As few examples, breathers in periodic potential, soliton compression in an exponentially dispersion decreasing fiber and interaction of boomerang solitons are discussed. The presented results have applications in the study of nonautonomous soliton birefringence-managed switching architecture. These results are potentially useful in the management of nonautonomous soliton with external potentials in the optical soliton communications and long-haul telecommunication networks.